Searched defs:layer (Results 1 - 25 of 47) sorted by relevance

12

/frameworks/base/core/jni/android/graphics/
H A DLayerRasterizer.cpp10 static void addLayer(JNIEnv* env, jobject, SkLayerRasterizer* layer, const SkPaint* paint, float dx, float dy) { argument
11 SkASSERT(layer);
13 layer->addLayer(*paint, SkFloatToScalar(dx), SkFloatToScalar(dy));
/frameworks/base/libs/hwui/
H A DLayerCache.h48 * 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
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 Th
104 LayerEntry(Layer* layer) argument
[all...]
H A DSnapshot.h61 * a new layer.
65 * Indicates that this snapshot is a special type of layer
76 * an FBO layer.
125 * is typicalled ignored if its layer is invisible or empty.
145 * A pointer to the currently active layer.
147 * This snapshot does not own the layer, this pointer must not be freed.
149 Layer* layer; member in class:android::uirenderer::Snapshot
159 * inside it. This flag is set only when the layer clips drawing to its
165 * If set to true, the layer will not be composited. This is similar to
213 * The ancestor layer'
[all...]
H A DLayerCache.cpp37 INIT_LOGD(" Setting layer cache size to %sMB", property);
40 INIT_LOGD(" Using default layer cache size of %.2fMB", DEFAULT_LAYER_CACHE_SIZE);
77 void LayerCache::deleteLayer(Layer* layer) { argument
78 if (layer) {
79 LAYER_LOGD("Destroying layer %dx%d, fbo %d", layer->getWidth(), layer->getHeight(),
80 layer->getFbo());
81 mSize -= layer->getWidth() * layer
95 Layer* layer = NULL; local
138 put(Layer* layer) argument
[all...]
H A DResourceCache.cpp391 Layer* layer = (Layer*) resource; local
392 Caches::getInstance().deleteLayerDeferred(layer);
H A DCaches.cpp332 Layer* layer = layers.itemAt(i); local
333 delete layer;
338 void Caches::deleteLayerDeferred(Layer* layer) { argument
340 mLayerGarbage.push(layer);
H A DDisplayListRenderer.h97 virtual status_t drawLayer(Layer* layer, float x, float y);
282 inline Layer* refLayer(Layer* layer) { argument
283 mLayers.add(layer);
284 mCaches.resourceCache.incrementRefcount(layer);
285 return layer;
H A DLayer.h50 * A layer has dimensions and is backed by an OpenGL texture or FBO.
67 * Sets this layer's region to a rectangle. Computes the appropriate
77 const float height = layer.getHeight();
82 regionRect.translate(layer.left, layer.top);
103 * Resize the layer and its texture if needed.
105 * @param width The new width of the layer
106 * @param height The new height of the layer
108 * @return True if the layer was resized or nothing happened, false if
234 * must call this method to tell this layer tha
255 Rect layer; member in struct:android::uirenderer::Layer
[all...]
H A DLayerRenderer.cpp36 LayerRenderer::LayerRenderer(Layer* layer): mLayer(layer) { argument
48 LAYER_RENDERER_LOGD("Rendering into layer, fbo = %d", mLayer->getFbo());
52 const float width = mLayer->layer.getWidth();
53 const float height = mLayer->layer.getHeight();
89 LAYER_RENDERER_LOGD("Finished rendering into layer, fbo = %d", mLayer->getFbo());
164 const float height = mLayer->layer.getHeight();
188 LAYER_RENDERER_LOGD("Requesting new render layer %dx%d", width, height);
198 Layer* layer = caches.layerCache.get(width, height); local
199 if (!layer) {
257 resizeLayer(Layer* layer, uint32_t width, uint32_t height) argument
276 Layer* layer = new Layer(0, 0); local
294 updateTextureLayer(Layer* layer, uint32_t width, uint32_t height, bool isOpaque, GLenum renderTarget, float* transform) argument
313 destroyLayer(Layer* layer) argument
332 destroyLayerDeferred(Layer* layer) argument
340 flushLayer(Layer* layer) argument
360 copyLayer(Layer* layer, SkBitmap* bitmap) argument
[all...]
/frameworks/base/services/java/com/android/server/wm/
H A DFocusedStackFrame.java139 public void setLayer(int layer) { argument
140 mSurfaceControl.setLayer(layer);
H A DBlackFrame.java36 final int layer; field in class:BlackFrame.BlackSurface
39 BlackSurface(SurfaceSession session, int layer, int l, int t, int r, int b, int layerStack) argument
43 this.layer = layer;
58 surface.setLayer(layer);
62 " BLACK " + surface + ": CREATE layer=" + layer);
115 public BlackFrame(SurfaceSession session, Rect outer, Rect inner, int layer, int layerStack, argument
125 mBlackSurfaces[0] = new BlackSurface(session, layer,
129 mBlackSurfaces[1] = new BlackSurface(session, layer,
[all...]
H A DDimLayer.java82 /** Return true if dim layer is showing */
96 void setLayer(int layer) { argument
97 if (mLayer != layer) {
98 mLayer = layer;
99 mDimSurface.setLayer(layer);
153 * @param layer The layer to set the surface to.
157 void show(int layer, float alpha, long duration) { argument
158 if (DEBUG) Slog.v(TAG, "show: layer=" + layer
[all...]
/frameworks/av/media/libstagefright/codecs/m4v_h263/dec/src/
H A Dvop.cpp80 PV_STATUS DecodeVOLHeader(VideoDecData *video, int layer) argument
96 currVol = video->vol[layer];
110 if (layer) /* */
289 if (layer) /* */
308 if (layer)
597 if (layer) return PV_FAIL; /* */
631 if (layer == 0) return PV_FAIL; /* */
639 if (layer) /* */
644 /* 1 : ref. layer has higher resolution */
645 /* 0 : ref. layer ha
[all...]
/frameworks/base/core/java/android/view/
H A DHardwareCanvas.java125 * Draws the specified layer onto this canvas.
127 * @param layer The layer to composite on this canvas
128 * @param x The left coordinate of the layer
129 * @param y The top coordinate of the layer
130 * @param paint The paint used to draw the layer
134 abstract void drawHardwareLayer(HardwareLayer layer, float x, float y, Paint paint); argument
194 * Indicates that the specified layer must be updated as soon as possible.
196 * @param layer The layer t
202 pushLayerUpdate(HardwareLayer layer) argument
215 cancelLayerUpdate(HardwareLayer layer) argument
[all...]
/frameworks/base/services/java/com/android/server/input/
H A DInputWindowHandle.java81 // Window layer.
82 public int layer; field in class:InputWindowHandle
/frameworks/native/services/surfaceflinger/
H A DClient.cpp46 sp<Layer> layer(mLayers.valueAt(i).promote());
47 if (layer != 0) {
48 mFlinger->removeLayer(layer);
57 void Client::attachLayer(const sp<IBinder>& handle, const sp<Layer>& layer) argument
60 mLayers.add(handle, layer);
63 void Client::detachLayer(const Layer* layer) argument
69 if (mLayers.valueAt(i) == layer) {
79 wp<Layer> layer(mLayers.valueFor(handle));
80 if (layer != 0) {
81 lbc = layer
[all...]
/frameworks/av/media/libstagefright/codecs/m4v_h263/dec/include/
H A Dmp4dec_api.h70 int layer; /* current video layer */ member in struct:tagApplicationData
/frameworks/base/services/input/
H A DSpriteController.cpp292 int32_t surfaceLayer = mOverlayLayer + update.state.layer;
297 ALOGE("Error %d setting sprite surface layer.", status);
445 void SpriteController::SpriteImpl::setLayer(int32_t layer) { argument
448 if (mLocked.state.layer != layer) {
449 mLocked.state.layer = layer;
H A DSpriteController.h95 // The base layer for pointer sprites.
98 // The base layer for spot sprites.
116 /* Sets the layer of the sprite, relative to the system sprite overlay layer.
117 * Layer 0 is the overlay layer, > 0 appear above this layer. */
118 virtual void setLayer(int32_t layer) = 0;
180 positionX(0), positionY(0), layer(0), alpha(1.0f),
190 int32_t layer; member in struct:android::SpriteController::SpriteState
222 virtual void setLayer(int32_t layer);
[all...]
/frameworks/base/services/jni/
H A Dcom_android_server_input_InputWindowHandle.cpp52 jfieldID layer; member in struct:android::__anon1194
150 mInfo->layer = env->GetIntField(obj,
151 gInputWindowHandleClassInfo.layer);
292 GET_FIELD_ID(gInputWindowHandleClassInfo.layer, clazz,
293 "layer", "I");
/frameworks/native/libs/gui/
H A DSurfaceControl.cpp99 status_t SurfaceControl::setLayer(int32_t layer) { argument
103 return client->setLayer(mHandle, layer);
/frameworks/native/opengl/tests/hwc/
H A DhwcColorEquiv.cpp356 hwc_layer_1_t *layer = &list->hwLayers[0]; local
357 layer->handle = refFrame->handle;
358 layer->blending = HWC_BLENDING_NONE;
359 layer->sourceCrop.left = 0;
360 layer->sourceCrop.top = 0;
361 layer->sourceCrop.right = width;
362 layer->sourceCrop.bottom = refHeight;
363 layer->displayFrame.left = 0;
364 layer->displayFrame.top = 0;
365 layer
[all...]
H A DhwcRects.cpp317 hwc_layer_1_t *layer = &list->hwLayers[0]; local
319 it != rectangle.end(); ++it, ++layer) {
320 layer->handle = it->texture->handle;
321 layer->blending = it->blend;
322 layer->transform = it->transform;
323 layer->sourceCrop = it->sourceCrop;
324 layer->displayFrame = it->displayFrame;
326 layer->visibleRegionScreen.numRects = 1;
327 layer->visibleRegionScreen.rects = &layer
[all...]
H A DhwcStress.cpp46 * be made with each of the layer handles changed to a different
423 // Any transform tends to create a layer that the hardware
431 hwc_layer_1_t *layer = &list->hwLayers[n1]; local
432 layer->handle = gBuf->handle;
434 layer->blending = blendingOps[testRandMod(NUMA(blendingOps))];
435 layer->flags = (testRandFract() > rareRatio) ? 0
438 layer->transform = (noTransform || testRandFract() > rareRatio) ? 0
441 layer->sourceCrop.left = testRandMod(gBuf->getWidth());
442 layer->sourceCrop.top = testRandMod(gBuf->getHeight());
443 layer
502 hwc_layer_1_t *layer = &list->hwLayers[n1]; local
[all...]
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/
H A DGcSnapshot.java56 * for each layer. Doing a save() will duplicate this list so that each graphics2D object
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.
87 * Class containing information about a layer.
89 * This contains graphics, bitmap and layer information.
95 /** the flags that were used to configure the layer. This is never changed, and passed
98 /** the original content of the layer when the next object was created. This is not
99 * passed in {@link #makeCopy()} and instead is recreated when a new layer i
603 drawInLayer(Layer layer, Drawable drawable, Paint_Delegate paint, boolean compositeOnly, boolean forceSrcMode) argument
[all...]

Completed in 453 milliseconds

12