Searched defs:layer (Results 1 - 25 of 49) 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.h49 * 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
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 Th
118 LayerEntry(Layer* layer) argument
[all...]
H A DLayerCache.cpp38 INIT_LOGD(" Setting layer cache size to %sMB", property);
41 INIT_LOGD(" Using default layer cache size of %.2fMB", DEFAULT_LAYER_CACHE_SIZE);
70 void LayerCache::deleteLayer(Layer* layer) { argument
71 if (layer) {
72 LAYER_LOGD("Destroying layer %dx%d, fbo %d", layer->getWidth(), layer->getHeight(),
73 layer->getFbo());
74 mSize -= layer->getWidth() * layer
88 Layer* layer = NULL; local
131 resize(Layer* layer, const uint32_t width, const uint32_t height) argument
156 put(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.
119 * is typicalled ignored if its layer is invisible or empty.
141 * This snapshot does not own the layer, this pointer must not be freed.
143 Layer* layer; member in class:android::uirenderer::Snapshot
153 * inside it. This flag is set only when the layer clips drawing to its
159 * If set to true, the layer will not be composited. This is similar to
209 * The ancestor layer's dirty region.
211 * This is a reference to a region owned by a layer
[all...]
H A DResourceCache.cpp339 Layer* layer = (Layer*) resource; local
340 Caches::getInstance().deleteLayerDeferred(layer);
H A DCaches.cpp252 Layer* layer = layers.itemAt(i); local
253 delete layer;
258 void Caches::deleteLayerDeferred(Layer* layer) { argument
260 mLayerGarbage.push(layer);
H A DLayer.h45 * A layer has dimensions and is backed by an OpenGL texture or FBO.
54 * Sets this layer's region to a rectangle. Computes the appropriate
64 const float height = layer.getHeight();
69 regionRect.translate(layer.left, layer.top);
208 * must call this method to tell this layer that it lost
221 ALOGD(" Allocate layer: %dx%d", getWidth(), getHeight());
235 * Bounds of the layer.
237 Rect layer; member in struct:android::uirenderer::Layer
239 * Texture coordinates of the 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();
88 LAYER_RENDERER_LOGD("Finished rendering into layer, fbo = %d", mLayer->getFbo());
162 const float height = mLayer->layer.getHeight();
198 LAYER_RENDERER_LOGD("Requesting new render layer %dx%d", width, height);
208 Layer* layer = caches.layerCache.get(width, height); local
209 if (!layer) {
255 resizeLayer(Layer* layer, uint32_t width, uint32_t height) argument
275 Layer* layer = new Layer(0, 0); local
293 updateTextureLayer(Layer* layer, uint32_t width, uint32_t height, bool isOpaque, GLenum renderTarget, float* transform) argument
312 destroyLayer(Layer* layer) argument
331 destroyLayerDeferred(Layer* layer) argument
339 flushLayer(Layer* layer) argument
359 copyLayer(Layer* layer, SkBitmap* bitmap) argument
[all...]
/frameworks/base/core/java/android/view/
H A DHardwareCanvas.java78 * Draws the specified layer onto this canvas.
80 * @param layer The layer to composite on this canvas
81 * @param x The left coordinate of the layer
82 * @param y The top coordinate of the layer
83 * @param paint The paint used to draw the layer
85 abstract void drawHardwareLayer(HardwareLayer layer, float x, float y, Paint paint); argument
137 * Indicates that the specified layer must be updated as soon as possible.
139 * @param layer The layer t
143 pushLayerUpdate(HardwareLayer layer) argument
[all...]
H A DWindowInfo.java56 public int layer = UNDEFINED; field in class:WindowInfo
76 parcel.writeInt(layer);
88 layer = parcel.readInt();
100 info.layer = other.layer;
142 layer = UNDEFINED;
152 builder.append(", layer:").append(layer);
/frameworks/base/services/java/com/android/server/wm/
H A DDimSurface.java61 void show(int dw, int dh, int layer, int color) { argument
69 dw + "x" + dh + " layer=" + layer + ")");
76 mDimSurface.setLayer(layer);
82 || mLayer != layer) {
84 dw + "x" + dh + " layer=" + layer + ")");
87 mLayer = layer;
90 mDimSurface.setLayer(layer);
H A DBlackFrame.java35 final int layer; field in class:BlackFrame.BlackSurface
38 BlackSurface(SurfaceSession session, int layer, int l, int t, int r, int b, int layerStack) argument
42 this.layer = layer;
55 surface.setLayer(layer);
59 " BLACK " + surface + ": CREATE layer=" + layer);
107 int layer, final int layerStack) throws Surface.OutOfResourcesException {
114 mBlackSurfaces[0] = new BlackSurface(session, layer,
118 mBlackSurfaces[1] = new BlackSurface(session, layer,
106 BlackFrame(SurfaceSession session, Rect outer, Rect inner, int layer, final int layerStack) argument
[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/services/java/com/android/server/input/
H A DInputWindowHandle.java80 // Window layer.
81 public int layer; field in class:InputWindowHandle
/frameworks/native/services/surfaceflinger/
H A DClient.cpp46 sp<LayerBaseClient> layer(mLayers.valueAt(i).promote());
47 if (layer != 0) {
48 mFlinger->removeLayer(layer);
57 size_t Client::attachLayer(const sp<LayerBaseClient>& layer) argument
61 mLayers.add(name, layer);
65 void Client::detachLayer(const LayerBaseClient* layer) argument
71 if (mLayers.valueAt(i) == layer) {
81 wp<LayerBaseClient> layer(mLayers.valueFor(i));
82 if (layer != 0) {
83 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.cpp291 int32_t surfaceLayer = mOverlayLayer + update.state.layer;
296 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.cpp51 jfieldID layer; member in struct:android::__anon1141
147 mInfo->layer = env->GetIntField(obj,
148 gInputWindowHandleClassInfo.layer);
286 GET_FIELD_ID(gInputWindowHandleClassInfo.layer, clazz,
287 "layer", "I");
/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...]
/frameworks/native/libs/gui/
H A DSurface.cpp101 status_t SurfaceControl::setLayer(int32_t layer) { argument
105 return client->setLayer(mToken, layer);
/frameworks/native/services/surfaceflinger/DisplayHardware/
H A DHWComposer.h103 // create a work list for numLayers layer. sets HWC_GEOMETRY_CHANGED.
163 // select the layer at the given index
184 LayerListIterator(HWCLayer* layer, size_t index) argument
185 : mLayerList(layer), mIndex(index) { }
217 // Returns an iterator to the beginning of the layer list
220 // Returns an iterator to the end of the layer list

Completed in 768 milliseconds

12