Searched refs:layer (Results 26 - 50 of 126) sorted by relevance

123456

/frameworks/base/libs/hwui/renderstate/
H A DRenderState.h74 void registerLayer(Layer* layer) { argument
75 mActiveLayers.insert(layer);
77 void unregisterLayer(Layer* layer) { argument
78 mActiveLayers.erase(layer);
/frameworks/base/libs/hwui/
H A DCaches.cpp177 const Layer* layer = *it; local
179 layer->getWidth(), layer->getHeight(),
180 layer->isTextureLayer(), layer->getTextureId(),
181 layer->getFbo(), layer->getStrongCount());
182 memused += layer->getWidth() * layer->getHeight() * 4;
H A DSnapshot.cpp31 , layer(nullptr)
50 , layer(s->layer)
121 // TODO: This is incorrect, when we start rendering into a new layer,
168 // if we've hit a layer, translate by the layer's draw offset
169 outTransform->translate(current->layer->layer.left, current->layer->layer
[all...]
H A DLayer.cpp211 ALOGD(" Allocate layer: %dx%d", getWidth(), getHeight());
224 const float width = layer.getWidth();
225 const float height = layer.getHeight();
253 // renderer is checked as layer may be destroyed/put in layer cache with flush scheduled
258 renderer->prepareDirty(layer.getWidth(), layer.getHeight(),
276 renderer->prepareDirty(layer.getWidth(), layer.getHeight(),
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 DOpenGLRenderer.h150 void pushLayerUpdate(Layer* layer);
151 void cancelLayerUpdate(Layer* layer);
160 // Specialized saveLayer implementation, which will pass the convexMask to an FBO layer, if
169 void drawLayer(Layer* layer);
373 * Call this method after updating a layer during a drawing pass.
380 * appropriate layer(s).
386 * attaches it to the specified layer.
388 void attachStencilBufferToLayer(Layer* layer);
405 * Compose the layer defined in the current snapshot with the layer
[all...]
/frameworks/base/libs/hwui/renderthread/
H A DDrawFrameTask.h54 * and contains state (such as layer updaters & new DisplayLists) that is
65 void pushLayerUpdate(DeferredLayerUpdater* layer);
66 void removeLayerUpdate(DeferredLayerUpdater* layer);
H A DRenderProxy.h97 ANDROID_API bool copyLayerInto(DeferredLayerUpdater* layer, SkBitmap& bitmap);
98 ANDROID_API void pushLayerUpdate(DeferredLayerUpdater* layer);
99 ANDROID_API void cancelLayerUpdate(DeferredLayerUpdater* layer);
100 ANDROID_API void detachSurfaceTexture(DeferredLayerUpdater* layer);
H A DRenderProxy.cpp287 Layer* layer = args->context->createTextureLayer(); local
288 if (!layer) return nullptr;
289 return new DeferredLayerUpdater(layer);
296 DeferredLayerUpdater* layer = reinterpret_cast<DeferredLayerUpdater*>(retval); local
297 return layer;
313 CREATE_BRIDGE3(copyLayerInto, CanvasContext* context, DeferredLayerUpdater* layer, argument
315 bool success = args->context->copyLayerInto(args->layer, args->bitmap);
319 bool RenderProxy::copyLayerInto(DeferredLayerUpdater* layer, SkBitmap& bitmap) { argument
322 args->layer = layer;
327 pushLayerUpdate(DeferredLayerUpdater* layer) argument
331 cancelLayerUpdate(DeferredLayerUpdater* layer) argument
335 CREATE_BRIDGE1(detachSurfaceTexture, DeferredLayerUpdater* layer) argument
340 detachSurfaceTexture(DeferredLayerUpdater* 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/native/services/surfaceflinger/
H A DClient.h47 void attachLayer(const sp<IBinder>& handle, const sp<Layer>& layer);
49 void detachLayer(const Layer* layer);
H A DSurfaceFlinger.cpp1076 for (auto& layer : mLayersWithQueuedFrames) {
1077 layer->releasePendingBuffer();
1219 // rebuild the visible layer list per screen
1240 const sp<Layer>& layer(layers[i]);
1241 const Layer::State& s(layer->getDrawingState());
1244 layer->visibleNonTransparentRegion));
1247 layersSortedByZ.add(layer);
1249 // Clear out the HWC layer if this layer was
1251 layer
1806 const sp<Layer>& layer = currentLayers[i]; local
2214 sp<Layer> layer = weakLayer.promote(); local
2476 sp<Layer> layer; local
3796 getFrameTimestamps(const Layer& layer, uint64_t frameNumber, FrameTimestamps* outTimestamps) argument
[all...]
H A DLayer.h84 // have a stable sort order when their layer stack and Z-order are
148 // the this layer's size and format
200 * on the layer. It does not examine the current plane alpha value.
211 * isProtected - true if the layer may contain protected content in the
217 * isVisible - true if this layer is visible, false otherwise
253 HWComposer::HWCLayerInterface& layer);
255 HWComposer::HWCLayerInterface& layer);
257 HWComposer::HWCLayerInterface& layer);
269 HWComposer::HWCLayerInterface* layer);
276 * returns true if the layer ha
380 setHwcLayer(int32_t hwcId, std::shared_ptr<HWC2::Layer>&& layer) argument
591 std::shared_ptr<HWC2::Layer> layer; member in struct:android::Layer::HWCInfo
[all...]
H A DSurfaceFlinger_hwc1.cpp1129 // rebuild the visible layer list per screen
1149 const sp<Layer>& layer(layers[i]);
1150 const Layer::State& s(layer->getDrawingState());
1153 layer->visibleNonTransparentRegion));
1156 layersSortedByZ.add(layer);
1181 // - When a display is created with a private layer stack, we won't
1182 // emit any black frames until a layer is added to the layer stack.
1215 const sp<Layer>& layer(currentLayers[i]);
1216 layer
1727 const sp<Layer>& layer = currentLayers[i]; local
1890 Layer* layer = layersWithQueuedFrames[i]; local
2130 sp<Layer> layer = weakLayer.promote(); local
2392 sp<Layer> layer; local
3655 getFrameTimestamps(const Layer& layer, uint64_t frameNumber, FrameTimestamps* outTimestamps) argument
[all...]
H A DSurfaceFlingerConsumer.h40 uint32_t tex, const Layer* layer)
43 mPrevReleaseFence(Fence::NO_FENCE), mLayer(layer)
113 // The layer for this SurfaceFlingerConsumer
39 SurfaceFlingerConsumer(const sp<IGraphicBufferConsumer>& consumer, uint32_t tex, const Layer* layer) argument
/frameworks/base/graphics/java/android/graphics/drawable/
H A DLayerDrawable.java51 * It can be defined in an XML file with the <code>&lt;layer-list></code> element.
52 * Each Drawable in the layer is defined in a nested <code>&lt;item></code>.
72 * Padding mode used to nest each layer inside the padding of the previous
73 * layer.
80 * Padding mode used to stack each layer directly atop the previous layer.
111 * Creates a new layer drawable with the list of specified layers.
121 * Creates a new layer drawable with the specified list of layers and the
192 final ChildDrawable layer = array[i];
193 layer
342 updateLayerFromTypedArray(@onNull ChildDrawable layer, @NonNull TypedArray a) argument
437 addLayer(@onNull ChildDrawable layer) argument
[all...]
/frameworks/base/services/core/java/com/android/server/wm/
H A DDimLayer.java74 /** Interface implemented by users of the dim layer */
78 /** Returns the display info. of the dim layer user. */
80 /** Gets the bounds of the dim layer user. */
84 /** The user of this dim layer. */
123 /** Return true if dim layer is showing */
137 void setLayer(int layer) { argument
138 if (mLayer == layer) {
141 mLayer = layer;
142 adjustLayer(layer);
145 private void adjustLayer(int layer) { argument
265 show(int layer, float alpha, long duration) argument
[all...]
/frameworks/native/vulkan/libvulkan/
H A Dapi.cpp17 // The API layer of the loader defines Vulkan API and manages layers. The
21 // There are a few of them requiring manual code for things such as layer
43 // Provide overridden layer names when there are implicit layers. No effect
70 // no need to override when there is no implicit layer
78 // add implicit layer names
84 // add explicit layer names
134 // debug.vulkan.layers specifies colon-separated layer names
159 static const char prefix[] = "debug.vulkan.layer.";
166 // debug.vulkan.layer.<priority>
172 ALOGW("Ignored implicit layer
187 auto& layer = arr.elements[arr.count++]; local
627 LoadLayer(ActiveLayer& layer, const char* name) argument
649 ActiveLayer& layer = layers_[i]; local
673 ActiveLayer& layer = layers_[i]; local
956 const ActiveLayer& layer = layers_[i]; local
962 const ActiveLayer& layer = layers_[i]; local
1207 const Layer* layer = FindLayer(pLayerName); local
1257 const Layer* layer = FindLayer(pLayerName); local
[all...]
/frameworks/base/libs/hwui/tests/common/
H A DTestUtils.cpp46 Layer* layer = LayerRenderer::createTextureLayer(renderThread.renderState()); local
47 layer->getTransform().load(transform);
49 sp<DeferredLayerUpdater> layerUpdater = new DeferredLayerUpdater(layer);
57 LayerRenderer::updateTextureLayer(layer, width, height, isOpaque, forceFilter,
/frameworks/base/core/java/android/view/
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...]
H A DDisplayListCanvas.java216 // Hardware layer
220 * Draws the specified layer onto this canvas.
222 * @param layer The layer to composite on this canvas
224 void drawHardwareLayer(HardwareLayer layer) { argument
225 nDrawLayer(mNativeCanvasWrapper, layer.getLayerHandle());
228 private static native void nDrawLayer(long renderer, long layer); argument
H A DThreadedRenderer.java523 * Detaches the layer's surface texture from the GL context and releases
799 * Creates a new hardware layer. A hardware layer built by calling this
800 * method will be treated as a texture layer, instead of as a render target.
802 * @return A hardware layer
805 long layer = nCreateTextureLayer(mNativeProxy);
806 return HardwareLayer.adoptTextureLayer(this, layer);
815 boolean copyLayerInto(final HardwareLayer layer, final Bitmap bitmap) { argument
817 layer.getDeferredLayerUpdater(), bitmap);
821 * Indicates that the specified hardware layer need
826 pushLayerUpdate(HardwareLayer layer) argument
834 onLayerDestroyed(HardwareLayer layer) argument
1010 nCopyLayerInto(long nativeProxy, long layer, Bitmap bitmap) argument
1011 nPushLayerUpdate(long nativeProxy, long layer) argument
1012 nCancelLayerUpdate(long nativeProxy, long layer) argument
1013 nDetachSurfaceTexture(long nativeProxy, long layer) argument
[all...]
/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,
/frameworks/native/services/surfaceflinger/DisplayHardware/
H A DHWC2On1Adapter.cpp87 auto& layer = contents->hwLayers[l]; local
88 std::free(const_cast<hwc_rect_t*>(layer.visibleRegionScreen.rects));
587 auto layer = mDevice.mLayers[layerId]; local
588 layer->setCompositionType(type);
602 auto layer = *mLayers.emplace(std::make_shared<Layer>(*this)); local
603 mDevice.mLayers.emplace(std::make_pair(layer->getId(), layer));
604 *outLayerId = layer->getId();
605 ALOGV("[%" PRIu64 "] created layer %" PRIu64, mId, *outLayerId);
615 ALOGV("[%" PRIu64 "] destroyLayer(%" PRIu64 ") failed: no such layer",
619 const auto layer = mapLayer->second; local
1061 const auto layer = mapLayer->second; local
1320 auto& layer = contents->hwLayers[layerId]; local
1347 Layer& layer = *mHwc1LayerMap[hwc1Id]; local
1374 auto& layer = hwcContents.hwLayers[l]; local
1424 Layer& layer = *mHwc1LayerMap[hwc1Id]; local
1602 output << fill << " Layer " << layer; local
1892 updateTypeChanges(const hwc_layer_1_t& hwc1Layer, const Layer& layer) argument
1928 updateLayerRequests( const hwc_layer_1_t& hwc1Layer, const Layer& layer) argument
2388 auto layer = layerEntry->second; local
2469 auto& layer = displayContents->hwLayers[l]; local
[all...]
/frameworks/native/opengl/tests/hwc/
H A DhwcRects.cpp315 hwc_layer_1_t *layer = &list->hwLayers[0]; local
317 it != rectangle.end(); ++it, ++layer) {
318 layer->handle = it->texture->handle;
319 layer->blending = it->blend;
320 layer->transform = it->transform;
321 layer->sourceCrop = it->sourceCrop;
322 layer->displayFrame = it->displayFrame;
324 layer->visibleRegionScreen.numRects = 1;
325 layer->visibleRegionScreen.rects = &layer
[all...]

Completed in 516 milliseconds

123456