Home | History | Annotate | Download | only in hwui

Lines Matching refs:Layer

21 #include "Layer.h"
49 * Returns a layer large enough for the specified dimensions. If no suitable
50 * layer can be found, a new one is created and returned. If creating a new
51 * layer fails, NULL is returned.
53 * When a layer is obtained from the cache, it is removed and the total
56 * @param width The desired width of the layer
57 * @param height The desired height of the layer
59 Layer* get(RenderState& renderState, const uint32_t width, const uint32_t height);
62 * Adds the layer to the cache. The layer will not be added if there is
63 * not enough space available. Adding a layer can cause other layers to
66 * @param layer The layer to add to the cache
68 * @return True if the layer was added, false otherwise.
70 bool put(Layer* layer);
103 mWidth = Layer::computeIdealWidth(layerWidth);
104 mHeight = Layer::computeIdealHeight(layerHeight);
107 LayerEntry(Layer* layer):
108 mLayer(layer), mWidth(layer->getWidth()), mHeight(layer->getHeight()) {
129 Layer* mLayer;
134 void deleteLayer(Layer* layer);