Home
last modified time | relevance | path

Searched refs:layerUpdater (Results 1 – 6 of 6) sorted by relevance

/frameworks/base/libs/hwui/tests/unit/
DDeferredLayerUpdaterTests.cpp30 sp<DeferredLayerUpdater> layerUpdater = TestUtils::createTextureLayerUpdater(renderThread); in RENDERTHREAD_TEST() local
31 layerUpdater->setSize(100, 100); in RENDERTHREAD_TEST()
32 layerUpdater->setBlend(true); in RENDERTHREAD_TEST()
35 EXPECT_EQ(0u, layerUpdater->backingLayer()->getWidth()); in RENDERTHREAD_TEST()
36 EXPECT_EQ(0u, layerUpdater->backingLayer()->getHeight()); in RENDERTHREAD_TEST()
37 EXPECT_FALSE(layerUpdater->backingLayer()->getForceFilter()); in RENDERTHREAD_TEST()
38 EXPECT_FALSE(layerUpdater->backingLayer()->isBlend()); in RENDERTHREAD_TEST()
39 EXPECT_EQ(Matrix4::identity(), layerUpdater->backingLayer()->getTexTransform()); in RENDERTHREAD_TEST()
46 layerUpdater->updateLayer(true, scaledMatrix, layerImage); in RENDERTHREAD_TEST()
49 EXPECT_EQ(100u, layerUpdater->backingLayer()->getWidth()); in RENDERTHREAD_TEST()
[all …]
/frameworks/base/libs/hwui/tests/common/
DTestUtils.cpp62 sp<DeferredLayerUpdater> layerUpdater = pipeline->createTextureLayer(); in createTextureLayerUpdater() local
63 layerUpdater->apply(); in createTextureLayerUpdater()
65 return layerUpdater; in createTextureLayerUpdater()
71 sp<DeferredLayerUpdater> layerUpdater = createTextureLayerUpdater(renderThread); in createTextureLayerUpdater() local
72 layerUpdater->backingLayer()->getTransform() = transform; in createTextureLayerUpdater()
73 layerUpdater->setSize(width, height); in createTextureLayerUpdater()
74 layerUpdater->setTransform(&transform); in createTextureLayerUpdater()
77 layerUpdater->updateLayer(true, SkMatrix::I(), nullptr); in createTextureLayerUpdater()
78 return layerUpdater; in createTextureLayerUpdater()
/frameworks/base/core/java/android/view/
DTextureLayer.java148 private static native boolean nPrepare(long layerUpdater, int width, int height, in nPrepare() argument
150 private static native void nSetLayerPaint(long layerUpdater, long paint); in nSetLayerPaint() argument
151 private static native void nSetTransform(long layerUpdater, long matrix); in nSetTransform() argument
152 private static native void nSetSurfaceTexture(long layerUpdater, SurfaceTexture surface); in nSetSurfaceTexture() argument
153 private static native void nUpdateSurfaceTexture(long layerUpdater); in nUpdateSurfaceTexture() argument
/frameworks/base/libs/hwui/pipeline/skia/
DLayerDrawable.h33 explicit LayerDrawable(DeferredLayerUpdater* layerUpdater) : mLayerUpdater(layerUpdater) {} in LayerDrawable() argument
DSkiaRecordingCanvas.cpp108 void SkiaRecordingCanvas::drawLayer(uirenderer::DeferredLayerUpdater* layerUpdater) { in drawLayer() argument
110 if (layerUpdater != nullptr) { in drawLayer()
112 sk_sp<SkDrawable> drawable(new LayerDrawable(layerUpdater)); in drawLayer()
/frameworks/base/libs/hwui/
DSkiaCanvas.cpp837 void SkiaCanvas::drawLayer(uirenderer::DeferredLayerUpdater* layerUpdater) { in drawLayer() argument