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

1234

/frameworks/base/libs/hwui/tests/unit/
H A DOffscreenBufferPoolTests.cpp34 OffscreenBuffer layer(renderThread.renderState(), Caches::getInstance(), 49u, 149u);
35 EXPECT_EQ(49u, layer.viewportWidth);
36 EXPECT_EQ(149u, layer.viewportHeight);
38 EXPECT_EQ(64u, layer.texture.width());
39 EXPECT_EQ(192u, layer.texture.height());
41 EXPECT_EQ(64u * 192u * 4u, layer.getSizeInBytes());
71 auto layer = pool.get(renderThread.renderState(), 100u, 200u); local
72 EXPECT_EQ(100u, layer->viewportWidth);
73 EXPECT_EQ(200u, layer->viewportHeight);
75 ASSERT_LT(layer
94 auto layer = pool.get(renderThread.renderState(), 64u, 64u); local
[all...]
/frameworks/base/libs/hwui/
H A DDeferredLayerUpdater.cpp27 DeferredLayerUpdater::DeferredLayerUpdater(Layer* layer) argument
32 , mLayer(layer)
34 mWidth = mLayer->layer.getWidth();
35 mHeight = mLayer->layer.getHeight();
57 // These properties are applied the same to both layer types
97 // force filtration if buffer size != layer size
104 RENDERER_LOGD("Dropped %d frames on texture layer update", dropCounter);
H A DLayerCache.h50 * 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
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 Th
108 LayerEntry(Layer* layer) argument
[all...]
H A DLayerCache.cpp74 void LayerCache::deleteLayer(Layer* layer) { argument
75 if (layer) {
76 LAYER_LOGD("Destroying layer %dx%d, fbo %d", layer->getWidth(), layer->getHeight(),
77 layer->getFbo());
78 mSize -= layer->getWidth() * layer->getHeight() * 4;
79 layer->state = Layer::State::DeletedFromCache;
80 layer
92 Layer* layer = nullptr; local
130 put(Layer* layer) argument
[all...]
H A DCaches.cpp174 const Layer* layer = *it; local
176 layer->getWidth(), layer->getHeight(),
177 layer->isTextureLayer(), layer->getTextureId(),
178 layer->getFbo(), layer->getStrongCount());
179 memused += layer->getWidth() * layer->getHeight() * 4;
H A DFrameBuilder.h44 * reorder and merge each op as it is resolved for drawing efficiency. Each layer of content (either
122 LayerBuilder& layer = *(mLayerBuilders[i]); local
123 if (layer.renderNode) {
124 // cached HW layer - can't skip layer if empty
125 renderer.startRepaintLayer(layer.offscreenBuffer, layer.repaintRect);
127 layer.replayBakedOpsImpl((void*)&renderer, unmergedReceivers, mergedReceivers);
130 } else if (!layer.empty()) {
131 // save layer
[all...]
H A DSkiaShader.h78 Layer* layer; member in struct:android::uirenderer::SkiaShaderData::LayerShaderData
H A DBakedOpRenderer.cpp33 LOG_ALWAYS_FATAL_IF(mRenderTarget.offscreenBuffer, "already has layer...");
45 LOG_ALWAYS_FATAL_IF(mRenderTarget.offscreenBuffer, "already has layer...");
50 // repaint full layer, so throw away entire region
312 OffscreenBuffer* layer = mRenderTarget.offscreenBuffer; local
315 layer->texture.width(), layer->texture.height());
H A DSkiaShader.cpp327 Layer* layer; local
328 if (!shader.asACustomShader(reinterpret_cast<void**>(&layer))) {
333 outData->layer = layer;
336 const float width = layer->getWidth();
337 const float height = layer->getHeight();
350 data.layer->bindTexture();
351 data.layer->setWrap(GL_CLAMP_TO_EDGE);
352 data.layer->setFilter(GL_LINEAR);
H A DSnapshot.h104 * a new layer.
108 * Indicates that this snapshot is a special type of layer
118 * an FBO layer.
214 * is typically ignored if its layer is invisible or empty.
225 * across layer boundaries.
241 * A pointer to the currently active layer.
243 * This snapshot does not own the layer, this pointer must not be freed.
245 Layer* layer; member in class:android::uirenderer::Snapshot
255 * inside it. This flag is set only when the layer clips drawing to its
261 * If set to true, the layer wil
[all...]
/frameworks/base/core/java/android/view/
H A DWindowInfo.java41 public int layer; field in class:WindowInfo
65 window.layer = other.layer;
97 parcel.writeInt(layer);
119 builder.append(", layer=").append(layer);
132 layer = parcel.readInt();
151 layer = 0;
H A DHardwareLayer.java28 * A hardware layer can be used to render graphics operations into a hardware
29 * friendly buffer. For instance, with an OpenGL backend a hardware layer
30 * would use a Frame Buffer Object (FBO.) The hardware layer can be used as
50 * Update the paint used when drawing this layer.
52 * @param paint The paint used when the layer is drawn into the destination canvas.
61 * Indicates whether this layer can be rendered.
63 * @return True if the layer can be rendered into, false otherwise
88 * Copies this layer into the specified bitmap.
90 * @param bitmap The bitmap to copy they layer into
99 * Update the layer'
144 adoptTextureLayer(ThreadedRenderer renderer, long layer) argument
[all...]
/frameworks/base/core/jni/
H A Dandroid_view_HardwareLayer.cpp46 DeferredLayerUpdater* layer = reinterpret_cast<DeferredLayerUpdater*>(layerUpdaterPtr); local
48 changed |= layer->setSize(width, height);
49 changed |= layer->setBlend(!isOpaque);
55 DeferredLayerUpdater* layer = reinterpret_cast<DeferredLayerUpdater*>(layerUpdaterPtr); local
56 if (layer) {
58 layer->setPaint(paint);
64 DeferredLayerUpdater* layer = reinterpret_cast<DeferredLayerUpdater*>(layerUpdaterPtr); local
66 layer->setTransform(matrix);
71 DeferredLayerUpdater* layer = reinterpret_cast<DeferredLayerUpdater*>(layerUpdaterPtr); local
73 layer
78 DeferredLayerUpdater* layer = reinterpret_cast<DeferredLayerUpdater*>(layerUpdaterPtr); local
[all...]
/frameworks/base/libs/hwui/renderthread/
H A DDrawFrameTask.cpp48 void DrawFrameTask::pushLayerUpdate(DeferredLayerUpdater* layer) { argument
52 if (mLayers[i].get() == layer) {
56 mLayers.push_back(layer);
59 void DrawFrameTask::removeLayerUpdate(DeferredLayerUpdater* layer) { argument
61 if (mLayers[i].get() == layer) {
/frameworks/native/services/surfaceflinger/
H A DFenceTracker.cpp56 const LayerRecord& layer = kv.second; local
57 outString->appendFormat("-- %s\n", layer.name.string());
59 layer.frameNumber,
60 layer.isGlesComposition ? "GLES" : "HWC");
62 layer.postedTime);
63 if (layer.acquireTime) {
65 layer.acquireTime);
69 if (layer.releaseTime) {
71 layer.releaseTime);
101 LayerRecord& layer local
[all...]
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
159 sp<Layer> layer = getLayerUser(handle); local
168 sp<Layer> layer = getLayerUser(handle); local
[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) /* */
293 if (layer) /* */
312 if (layer)
601 if (layer) return PV_FAIL; /* */
635 if (layer == 0) return PV_FAIL; /* */
643 if (layer) /* */
648 /* 1 : ref. layer has higher resolution */
649 /* 0 : ref. layer ha
[all...]
/frameworks/base/libs/hwui/renderstate/
H A DOffscreenBufferPool.h71 // Portion of layer that has been drawn to. Used to minimize drawing area when
95 WARN_UNUSED_RESULT OffscreenBuffer* resize(OffscreenBuffer* layer,
98 void putOrDelete(OffscreenBuffer* layer);
129 Entry(OffscreenBuffer* layer) argument
130 : layer(layer)
131 , width(layer->texture.width())
132 , height(layer->texture.height()) {
149 OffscreenBuffer* layer = nullptr; member in struct:android::uirenderer::OffscreenBufferPool::Entry
H A DRenderState.h74 void registerLayer(Layer* layer) { argument
75 mActiveLayers.insert(layer);
77 void unregisterLayer(Layer* layer) { argument
78 mActiveLayers.erase(layer);
H A DOffscreenBufferPool.cpp134 delete entry.layer;
142 OffscreenBuffer* layer = nullptr; local
151 layer = entry.layer;
152 layer->viewportWidth = width;
153 layer->viewportHeight = height;
154 mSize -= layer->getSizeInBytes();
156 layer = new OffscreenBuffer(renderState, Caches::getInstance(), width, height);
159 return layer;
162 OffscreenBuffer* OffscreenBufferPool::resize(OffscreenBuffer* layer, argument
185 putOrDelete(OffscreenBuffer* layer) argument
[all...]
/frameworks/base/services/core/java/com/android/server/input/
H A DInputWindowHandle.java80 // Window layer.
81 public int layer; field in class:InputWindowHandle
105 .append(", layer=").append(layer)
/frameworks/base/services/core/java/com/android/server/wm/
H A DBlackFrame.java43 final int layer; field in class:BlackFrame.BlackSurface
46 BlackSurface(SurfaceSession session, int layer, int l, int t, int r, int b, int layerStack) argument
50 this.layer = layer;
65 surface.setLayer(layer);
68 " BLACK " + surface + ": CREATE layer=" + layer);
121 public BlackFrame(SurfaceSession session, Rect outer, Rect inner, int layer, int layerStack, argument
131 mBlackSurfaces[0] = new BlackSurface(session, layer,
135 mBlackSurfaces[1] = new BlackSurface(session, layer,
[all...]
H A DWindowLayersController.java38 * the window is, the higher layer is assigned. The final layer is equal to base layer +
40 * the base layer (there are exceptions, e.g. due to keyguard and wallpaper and they need to be
44 * <li>IME (which has higher base layer, but will be positioned above application windows)</li>
89 // worst case would be unintentionalp layer reassignment.
118 if (DEBUG_LAYERS) Slog.v(TAG_WM, "Setting im layer adj to " + adj);
124 + " anim layer: " + imw.mWinAnimator.mAnimLayer);
129 + " anim layer: " + childWindow.mWinAnimator.mAnimLayer);
136 + " anim layer
232 assignAndIncreaseLayerIfNeeded(WindowState win, int layer) argument
241 assignAnimLayer(WindowState w, int layer) argument
[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/av/media/libstagefright/codecs/mp3dec/test/
H A Dmp3reader.cpp72 unsigned layer = (header >> 17) & 3; local
74 if (layer == 0x00) {
101 if (layer == 3) {
102 // layer I
129 // layer II or III
148 bitrate = (layer == 2 /* L2 */)
160 *out_num_samples = (layer == 1 /* L3 */) ? 576 : 1152;
172 size_t tmp = (layer == 1 /* L3 */) ? 72000 : 144000;
190 // Mask to extract the version, layer, sampling rate parts of the MP3 header,

Completed in 423 milliseconds

1234