Home | History | Annotate | Download | only in hwui

Lines Matching refs:Layer

21 #include "Layer.h"
48 * Returns a layer large enough for the specified dimensions. If no suitable
49 * layer can be found, a new one is created and returned. If creating a new
50 * layer fails, NULL is returned.
52 * When a layer is obtained from the cache, it is removed and the total
55 * @param width The desired width of the layer
56 * @param height The desired height of the layer
58 Layer* get(const uint32_t width, const uint32_t height);
61 * Adds the layer to the cache. The layer will not be added if there is
62 * not enough space available. Adding a layer can cause other layers to
65 * @param layer The layer to add to the cache
67 * @return True if the layer was added, false otherwise.
69 bool put(Layer* layer);
100 mWidth = Layer::computeIdealWidth(layerWidth);
101 mHeight = Layer::computeIdealHeight(layerHeight);
104 LayerEntry(Layer* layer):
105 mLayer(layer), mWidth(layer->getWidth()), mHeight(layer->getHeight()) {
126 Layer* mLayer;
131 void deleteLayer(Layer* layer);