Home | History | Annotate | Download | only in hwui

Lines Matching refs:Layer

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