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

1234

/frameworks/base/libs/hwui/pipeline/skia/
H A DLayerDrawable.h29 * Draws a layer backed by an OpenGL texture into a SkCanvas.
33 explicit LayerDrawable(Layer* layer) argument
34 : mLayer(layer) {}
36 static bool DrawLayer(GrContext* context, SkCanvas* canvas, Layer* layer);
H A DLayerDrawable.cpp33 bool LayerDrawable::DrawLayer(GrContext* context, SkCanvas* canvas, Layer* layer) { argument
34 // transform the matrix based on the layer
36 if (!layer->getTransform().isIdentity()) {
39 layer->getTransform().copyTo(transform);
44 if (layer->getApi() == Layer::Api::OpenGL) {
45 GlLayer* glLayer = static_cast<GlLayer*>(layer);
57 SkASSERT(layer->getApi() == Layer::Api::Vulkan);
58 VkLayer* vkLayer = static_cast<VkLayer*>(layer);
65 paint.setAlpha(layer->getAlpha());
66 paint.setBlendMode(layer
[all...]
/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/native/services/vr/hardware_composer/aidl/android/dvr/
H A Dparcelable_composer_layer.h15 ParcelableComposerLayer(const ComposerView::ComposerLayer& layer);
18 ComposerView::ComposerLayer layer() const { return layer_; } function in class:android::dvr::ParcelableComposerLayer
H A Dparcelable_composer_layer.cpp14 const ComposerView::ComposerLayer& layer) : layer_(layer) {}
13 ParcelableComposerLayer( const ComposerView::ComposerLayer& layer) argument
/frameworks/native/services/surfaceflinger/
H A DLayerVector.cpp31 // sort layers per layer-stack, then by z-order and finally by sequence
50 const auto& layer = (*this)[i]; local
51 auto& state = (stateSet == StateSet::Current) ? layer->getCurrentState()
52 : layer->getDrawingState();
56 layer->traverseInZOrder(stateSet, visitor);
62 const auto& layer = (*this)[i]; local
63 auto& state = (stateSet == StateSet::Current) ? layer->getCurrentState()
64 : layer->getDrawingState();
68 layer->traverseInReverseZOrder(stateSet, visitor);
H A DSurfaceFlingerConsumer.h42 uint32_t tex, Layer* layer)
44 mTransformToDisplayInverse(false), mSurfaceDamage(), mLayer(layer)
113 // The layer for this SurfaceFlingerConsumer
41 SurfaceFlingerConsumer(const sp<IGraphicBufferConsumer>& consumer, uint32_t tex, Layer* layer) argument
/frameworks/base/core/java/android/view/
H A DWindowInfo.java41 public int layer; field in class:WindowInfo
66 window.layer = other.layer;
99 parcel.writeInt(layer);
122 builder.append(", layer=").append(layer);
135 layer = parcel.readInt();
155 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.cpp45 DeferredLayerUpdater* layer = reinterpret_cast<DeferredLayerUpdater*>(layerUpdaterPtr); local
47 changed |= layer->setSize(width, height);
48 changed |= layer->setBlend(!isOpaque);
54 DeferredLayerUpdater* layer = reinterpret_cast<DeferredLayerUpdater*>(layerUpdaterPtr); local
55 if (layer) {
57 layer->setPaint(paint);
63 DeferredLayerUpdater* layer = reinterpret_cast<DeferredLayerUpdater*>(layerUpdaterPtr); local
65 layer->setTransform(matrix);
70 DeferredLayerUpdater* layer = reinterpret_cast<DeferredLayerUpdater*>(layerUpdaterPtr); local
72 layer
77 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/base/libs/hwui/
H A DCaches.cpp172 const Layer* layer = *it; local
173 LOG_ALWAYS_FATAL_IF(layer->getApi() != Layer::Api::OpenGL);
174 const GlLayer* glLayer = static_cast<const GlLayer*>(layer);
176 layer->getWidth(), layer->getHeight(),
178 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 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
308 OffscreenBuffer* layer = mRenderTarget.offscreenBuffer; local
311 layer->texture.width(), layer->texture.height());
H A DOpenGLReadback.cpp271 GlLayer& layer, SkBitmap* bitmap) {
273 renderThread.renderState(), layer.getTexture(), layer.getTexTransform(),
270 copyLayerInto(renderthread::RenderThread& renderThread, GlLayer& layer, SkBitmap* bitmap) argument
/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 explicit 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.h80 void registerLayer(Layer* layer) { argument
81 mActiveLayers.insert(layer);
83 void unregisterLayer(Layer* layer) { argument
84 mActiveLayers.erase(layer);
/frameworks/base/services/core/java/com/android/server/input/
H A DInputWindowHandle.java84 // Window layer.
85 public int layer; field in class:InputWindowHandle
110 .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.java39 * the window is, the higher layer is assigned. The final layer is equal to base layer +
41 * the base layer (there are exceptions, e.g. due to keyguard and wallpaper and they need to be
45 * <li>IME (which has higher base layer, but will be positioned above application windows)</li>
87 // layer reassignment.
130 Slog.v(TAG_WM, "Assign layer " + w + ": " + "mBase=" + w.mBaseLayer
170 // Child windows of the ime target with a positive sub-layer should be placed above
200 int layer = mHighestApplicationLayer + WINDOW_LAYER_MULTIPLIER;
204 layer
247 assignAndIncreaseLayerIfNeeded(WindowState win, int layer) argument
256 assignAnimLayer(WindowState w, int layer) argument
[all...]
/frameworks/native/cmds/surfacereplayer/replayer/trace_creator/
H A Dtrace_creator.py108 change.id = int(input("ID of layer/display to undergo a change: "))
117 change.layer.layer = layer()
130 change.matrix.dtdy = layer()
211 def layer(): function
212 layer = input("Enter layer: ")
214 return int(layer)
241 layer_stack = input("Enter layer stac
[all...]
/frameworks/native/services/surfaceflinger/tests/hwc2/
H A DHwc2TestLayers.cpp32 for (auto layer : layers) {
34 std::forward_as_tuple(layer),
107 * Also removes layouts where a layer is completely blocked from view.
118 bool Hwc2TestLayers::contains(hwc2_layer_t layer) const
120 return mTestLayers.count(layer) != 0;
123 int Hwc2TestLayers::getBuffer(hwc2_layer_t layer, buffer_handle_t* outHandle, argument
126 if (mTestLayers.count(layer) == 0) {
129 return mTestLayers.at(layer).getBuffer(outHandle, outAcquireFence);
132 hwc2_blend_mode_t Hwc2TestLayers::getBlendMode(hwc2_layer_t layer) const
134 if (mTestLayers.count(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/av/media/libstagefright/codecs/m4v_h263/dec/src/
H A Dvop.cpp82 PV_STATUS DecodeVOLHeader(VideoDecData *video, int layer) argument
98 currVol = video->vol[layer];
112 if (layer) /* */
295 if (layer) /* */
314 if (layer)
603 if (layer) return PV_FAIL; /* */
637 if (layer == 0) return PV_FAIL; /* */
645 if (layer) /* */
650 /* 1 : ref. layer has higher resolution */
651 /* 0 : ref. layer ha
[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,

Completed in 403 milliseconds

1234