HomeSort by relevance Sort by last modified time
    Searched refs:Layer (Results 1 - 25 of 41) sorted by null

1 2

  /frameworks/base/libs/hwui/
LayerRenderer.h 21 #include "Layer.h"
45 LayerRenderer(Layer* layer): mLayer(layer) {
58 static Layer* createTextureLayer(bool isOpaque);
59 static Layer* createLayer(uint32_t width, uint32_t height, bool isOpaque = false);
60 static bool resizeLayer(Layer* layer, uint32_t width, uint32_t height);
61 static void updateTextureLayer(Layer* layer, uint32_t width, uint32_t height
    [all...]
LayerCache.h 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 width The desired height of the layer
59 Layer* get(const uint32_t width, const uint32_t height);
62 * Adds the layer to the cache. The layer will not be added if there i
    [all...]
LayerCache.cpp 37 INIT_LOGD(" Setting layer cache size to %sMB", property);
40 INIT_LOGD(" Using default layer cache size of %.2fMB", DEFAULT_LAYER_CACHE_SIZE);
69 void LayerCache::deleteLayer(Layer* layer) {
70 if (layer) {
71 LAYER_LOGD("Destroying layer %dx%d", layer->getWidth(), layer->getHeight());
72 mSize -= layer->getWidth() * layer->getHeight() * 4
88 Layer* layer = NULL; local
    [all...]
Caches.h 100 Vector<Layer*> mLayerGarbage;
131 * Can be used to delete a layer from a non EGL thread.
133 void deleteLayerDeferred(Layer* layer);
LayerRenderer.cpp 35 LAYER_RENDERER_LOGD("Rendering into layer, fbo = %d", mLayer->getFbo());
39 const float width = mLayer->layer.getWidth();
40 const float height = mLayer->layer.getHeight();
65 LAYER_RENDERER_LOGD("Finished rendering into layer, fbo = %d", mLayer->getFbo());
140 const float height = mLayer->layer.getHeight();
176 Layer* LayerRenderer::createLayer(uint32_t width, uint32_t height, bool isOpaque) {
177 LAYER_RENDERER_LOGD("Requesting new render layer %dx%d", width, height);
186 Layer* layer = Caches::getInstance().layerCache.get(width, height); local
187 if (!layer) {
259 Layer* layer = new Layer(0, 0); local
    [all...]
Layer.h 41 * A layer has dimensions and is backed by an OpenGL texture or FBO.
43 struct Layer {
44 Layer(const uint32_t layerWidth, const uint32_t layerHeight) {
56 ~Layer() {
62 * Sets this layer's region to a rectangle. Computes the appropriate
72 const float height = layer.getHeight();
77 regionRect.translate(layer.left, layer.top);
211 * Bounds of the layer.
213 Rect layer; member in struct:android::uirenderer::Layer
    [all...]
OpenGLRenderer.h 101 virtual void drawLayer(Layer* layer, float x, float y, SkPaint* paint);
137 * Compose the layer defined in the current snapshot with the layer
140 * The current snapshot *must* be a layer (flag kFlagIsLayer set.)
142 * @param curent The current snapshot containing the layer to compose
143 * @param previous The previous snapshot to compose the current layer with
160 * Returns the region of the current layer.
167 * Indicates whether rendering is currently targeted at a layer.
181 * Renders the specified layer as a textured quad
    [all...]
  /external/webkit/Source/WebCore/platform/graphics/android/
Layer.h 30 class Layer : public SkRefCnt {
33 Layer();
34 Layer(const Layer&);
35 virtual ~Layer();
37 // Whether the layer should apply its tranform directly onto the root
38 // layer, rather than using the transforms of all ancestor layers. This is
68 Layer* getChild(int index) const;
70 /** Add this layer to our child list at the end (top-most), and ref() it.
74 Layer* addChild(Layer* child)
    [all...]
TextureOwner.h 30 class Layer;
44 virtual bool samePageAs(Layer* root) { return false; }
Layer.cpp 2 #include "Layer.h"
14 Layer::Layer() {
29 SkDebugf("Layer new: %d\n", gLayerAllocCount);
33 Layer::Layer(const Layer& src) : INHERITED() {
48 SkDebugf("Layer copy: %d\n", gLayerAllocCount);
52 Layer::~Layer() {
    [all...]
BaseLayerAndroid.h 32 #include "Layer.h"
38 class BaseLayerAndroid : public Layer {
LayerAndroid.h 27 #include "Layer.h"
58 void serializeLayer(WebCore::LayerAndroid* layer, SkWStream* stream);
60 void cleanupImageRefs(WebCore::LayerAndroid* layer);
102 class LayerAndroid : public Layer {
106 LayerAndroid(const LayerAndroid& layer);
116 // Returns a rect describing the bounds of the layer with the local
117 // transformation applied, expressed relative to the parent layer.
134 // draw layer and its children via Z, pre-order traversal
138 // prepare layer and its children via reverse-Z, post-order traversal
166 SkRect viewRect) { // view rect, can be smaller than the layer'
    [all...]
  /frameworks/base/services/surfaceflinger/
Layer.cpp 38 #include "Layer.h"
49 Layer::Layer(SurfaceFlinger* flinger,
68 void Layer::onFirstRef()
73 FrameQueuedListener(Layer* layer) : mLayer(layer) { }
75 wp<Layer> mLayer;
77 sp<Layer> that(mLayer.promote());
89 Layer::~Layer(
    [all...]
SurfaceTextureLayer.h 30 class Layer;
34 wp<Layer> mLayer;
38 SurfaceTextureLayer(GLuint tex, const sp<Layer>& layer);
Layer.h 48 class Layer : public LayerBaseClient
51 Layer(SurfaceFlinger* flinger, DisplayID display,
54 virtual ~Layer();
56 virtual const char* getTypeId() const { return "Layer"; }
58 // the this layer's size and format
76 virtual sp<Layer> getLayer() const { return const_cast<Layer*>(this); }
SurfaceTextureLayer.cpp 23 #include "Layer.h"
30 SurfaceTextureLayer::SurfaceTextureLayer(GLuint tex, const sp<Layer>& layer)
31 : SurfaceTexture(tex), mLayer(layer) {
60 sp<Layer> layer(mLayer.promote());
61 if (layer != NULL) {
62 *outTransform = layer->getTransformHint();
71 sp<Layer> layer(mLayer.promote())
    [all...]
Android.mk 5 Layer.cpp \
SurfaceFlinger.h 39 #include "Layer.h"
50 class Layer;
69 size_t attachLayer(const sp<LayerBaseClient>& layer);
70 void detachLayer(const LayerBaseClient* layer);
199 status_t removeLayer(const sp<LayerBase>& layer);
200 status_t addLayer(const sp<LayerBase>& layer);
201 status_t invalidateLayerVisibility(const sp<LayerBase>& layer);
204 sp<Layer> getLayer(const sp<ISurface>& sur) const;
228 friend class Layer;
237 sp<Layer> createNormalSurface
    [all...]
LayerBase.cpp 194 const Layer::State& front(drawingState());
195 const Layer::State& temp(currentState());
199 // resize the layer, set the physical size to the requested size
200 Layer::State& editTemp(currentState());
207 flags |= Layer::eVisibleRegion;
228 const Layer::State& s(drawingState());
473 const Layer::State& s(drawingState());
522 const sp<LayerBaseClient>& layer)
523 : LayerCleaner(flinger, layer) { }
572 const sp<LayerBaseClient>& layer)
    [all...]
  /development/samples/ApiDemos/src/com/example/android/apis/graphics/kube/
Kube.java 138 mLayers[kUp] = new Layer(Layer.kAxisY);
139 mLayers[kDown] = new Layer(Layer.kAxisY);
140 mLayers[kLeft] = new Layer(Layer.kAxisX);
141 mLayers[kRight] = new Layer(Layer.kAxisX);
142 mLayers[kFront] = new Layer(Layer.kAxisZ)
150 Layer layer; local
    [all...]
Layer.java 19 public class Layer {
21 public Layer(int axis) {
  /frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/
GcSnapshot.java 55 * a list of Graphics2D for each layers. The class actually maintains a list of {@link Layer}
56 * for each layer. Doing a save() will duplicate this list so that each graphics2D object
57 * ({@link Layer#getGraphics()}) is configured only for the new snapshot.
65 private final ArrayList<Layer> mLayers = new ArrayList<Layer>();
72 // local layer data
73 /** a local layer created with {@link Canvas#saveLayer(RectF, Paint, int)}.
74 * If this is null, this does not mean there's no layer, just that the snapshot is not the
75 * one that created the layer.
78 private final Layer mLocalLayer
330 Layer layer = mLayers.get(i); local
591 Layer layer = mLayers.get(i); local
    [all...]
  /sdk/hierarchyviewer/src/com/android/hierarchyviewer/ui/util/
PsdFile.java 245 final List<Layer> mLayers = new ArrayList<Layer>();
248 mLayers.add(new Layer(name, image, offset, visible));
253 for (Layer layer : mLayers) {
254 length += layer.getLength();
261 for (Layer layer : mLayers) {
262 layer.write(out);
267 for (Layer layer : mLayers)
    [all...]
  /sdk/hierarchyviewer2/libs/hierarchyviewerlib/src/com/android/hierarchyviewerlib/ui/util/
PsdFile.java 287 final List<Layer> mLayers = new ArrayList<Layer>();
290 mLayers.add(new Layer(name, image, offset, visible));
295 for (Layer layer : mLayers) {
296 length += layer.getLength();
303 for (Layer layer : mLayers) {
304 layer.write(out);
309 for (Layer layer : mLayers)
    [all...]
  /frameworks/base/core/jni/
android_view_GLES20Canvas.cpp 53 * Note: OpenGLRenderer JNI layer is generated and compiled only on supported
638 jobject clazz, Layer* layer) {
639 if (layer) {
640 return new LayerRenderer(layer);
645 static Layer* android_view_GLES20Canvas_createTextureLayer(JNIEnv* env, jobject clazz,
647 Layer* layer = LayerRenderer::createTextureLayer(isOpaque); local
649 if (layer) {
651 storage[0] = layer->getTexture()
660 Layer* layer = LayerRenderer::createLayer(width, height, isOpaque); local
    [all...]

Completed in 199 milliseconds

1 2