/frameworks/base/libs/hwui/tests/unit/ |
D | OffscreenBufferPoolTests.cpp | 25 TEST(OffscreenBuffer, computeIdealDimension) { in TEST() argument 26 EXPECT_EQ(64u, OffscreenBuffer::computeIdealDimension(1)); in TEST() 27 EXPECT_EQ(64u, OffscreenBuffer::computeIdealDimension(31)); in TEST() 28 EXPECT_EQ(64u, OffscreenBuffer::computeIdealDimension(33)); in TEST() 29 EXPECT_EQ(64u, OffscreenBuffer::computeIdealDimension(64)); in TEST() 30 EXPECT_EQ(1024u, OffscreenBuffer::computeIdealDimension(1000)); in TEST() 33 RENDERTHREAD_TEST(OffscreenBuffer, construct) { in RENDERTHREAD_TEST() argument 34 OffscreenBuffer layer(renderThread.renderState(), Caches::getInstance(), 49u, 149u); in RENDERTHREAD_TEST() 44 RENDERTHREAD_TEST(OffscreenBuffer, getTextureCoordinates) { in RENDERTHREAD_TEST() argument 45 OffscreenBuffer layerAligned(renderThread.renderState(), Caches::getInstance(), 256u, 256u); in RENDERTHREAD_TEST() [all …]
|
D | FrameBuilderTests.cpp | 48 virtual OffscreenBuffer* startTemporaryLayer(uint32_t, uint32_t) { in startTemporaryLayer() 52 virtual void recycleTemporaryLayer(OffscreenBuffer*) { in recycleTemporaryLayer() argument 55 virtual void startRepaintLayer(OffscreenBuffer*, const Rect& repaintRect) { in startRepaintLayer() argument 812 OffscreenBuffer* startTemporaryLayer(uint32_t width, uint32_t height) override { in RENDERTHREAD_TEST() 837 void recycleTemporaryLayer(OffscreenBuffer* offscreenBuffer) override { in RENDERTHREAD_TEST() 867 OffscreenBuffer* startTemporaryLayer(uint32_t width, uint32_t height) override { in RENDERTHREAD_TEST() 872 return (OffscreenBuffer*) 0x400; in RENDERTHREAD_TEST() 876 return (OffscreenBuffer*) 0x800; in RENDERTHREAD_TEST() 878 return (OffscreenBuffer*) nullptr; in RENDERTHREAD_TEST() 901 EXPECT_EQ((OffscreenBuffer*)0x400, *op.layerHandle); in RENDERTHREAD_TEST() [all …]
|
D | BakedOpDispatcherTests.cpp | 120 OffscreenBuffer* buffer = nullptr; // no providing a buffer, should hit rect fallback case in RENDERTHREAD_TEST() 207 OffscreenBuffer** layerHandle = node->getLayerHandle(); in validateLayerDraw() 212 OffscreenBuffer layer(renderThread.renderState(), Caches::getInstance(), 100, 100); in validateLayerDraw()
|
D | BakedOpRendererTests.cpp | 28 OffscreenBuffer layer(renderThread.renderState(), Caches::getInstance(), 200u, 200u); in RENDERTHREAD_TEST()
|
/frameworks/base/libs/hwui/renderstate/ |
D | OffscreenBufferPool.cpp | 36 OffscreenBuffer::OffscreenBuffer(RenderState& renderState, Caches& caches, in OffscreenBuffer() function in android::uirenderer::OffscreenBuffer 38 : GpuMemoryTracker(GpuObjectType::OffscreenBuffer) in OffscreenBuffer() 53 Rect OffscreenBuffer::getTextureCoordinates() { in getTextureCoordinates() 59 void OffscreenBuffer::dirty(Rect dirtyArea) { in dirty() 67 void OffscreenBuffer::updateMeshFromRegion() { in updateMeshFromRegion() 101 uint32_t OffscreenBuffer::computeIdealDimension(uint32_t dimension) { in computeIdealDimension() 105 OffscreenBuffer::~OffscreenBuffer() { in ~OffscreenBuffer() 140 OffscreenBuffer* OffscreenBufferPool::get(RenderState& renderState, in get() 142 OffscreenBuffer* layer = nullptr; in get() 156 layer = new OffscreenBuffer(renderState, Caches::getInstance(), width, height); in get() [all …]
|
D | OffscreenBufferPool.h | 43 class OffscreenBuffer : GpuMemoryTracker { 45 OffscreenBuffer(RenderState& renderState, Caches& caches, 47 ~OffscreenBuffer(); 92 WARN_UNUSED_RESULT OffscreenBuffer* get(RenderState& renderState, 95 WARN_UNUSED_RESULT OffscreenBuffer* resize(OffscreenBuffer* layer, 98 void putOrDelete(OffscreenBuffer* layer); 126 : width(OffscreenBuffer::computeIdealDimension(layerWidth)) in Entry() 127 , height(OffscreenBuffer::computeIdealDimension(layerHeight)) {} in Entry() 129 Entry(OffscreenBuffer* layer) in Entry() 149 OffscreenBuffer* layer = nullptr;
|
/frameworks/base/libs/hwui/ |
D | BakedOpRenderer.h | 71 WARN_UNUSED_RESULT OffscreenBuffer* startTemporaryLayer(uint32_t width, uint32_t height); 72 void recycleTemporaryLayer(OffscreenBuffer* offscreenBuffer); 73 void startRepaintLayer(OffscreenBuffer* offscreenBuffer, const Rect& repaintRect); 75 WARN_UNUSED_RESULT OffscreenBuffer* copyToLayer(const Rect& area); 129 OffscreenBuffer* offscreenBuffer = nullptr;
|
D | BakedOpRenderer.cpp | 32 OffscreenBuffer* BakedOpRenderer::startTemporaryLayer(uint32_t width, uint32_t height) { in startTemporaryLayer() 35 OffscreenBuffer* buffer = mRenderState.layerPool().get(mRenderState, width, height); in startTemporaryLayer() 40 void BakedOpRenderer::recycleTemporaryLayer(OffscreenBuffer* offscreenBuffer) { in recycleTemporaryLayer() 44 void BakedOpRenderer::startRepaintLayer(OffscreenBuffer* offscreenBuffer, const Rect& repaintRect) { in startRepaintLayer() 103 OffscreenBuffer* BakedOpRenderer::copyToLayer(const Rect& area) { in copyToLayer() 106 OffscreenBuffer* buffer = mRenderState.layerPool().get(mRenderState, width, height); in copyToLayer() 312 OffscreenBuffer* layer = mRenderTarget.offscreenBuffer; in prepareRender()
|
D | RecordedOp.h | 39 class OffscreenBuffer; variable 468 CopyToLayerOp(const RecordedOp& op, OffscreenBuffer** layerHandle) in CopyToLayerOp() 478 OffscreenBuffer** layerHandle; 484 CopyFromLayerOp(const RecordedOp& op, OffscreenBuffer** layerHandle) in CopyFromLayerOp() 494 OffscreenBuffer** layerHandle; 505 LayerOp(BASE_PARAMS, OffscreenBuffer** layerHandle) in LayerOp() 521 OffscreenBuffer** layerHandle;
|
D | RenderNode.h | 55 class OffscreenBuffer; variable 57 typedef OffscreenBuffer layer_t; 227 OffscreenBuffer* getLayer() const { return mLayer; } in getLayer() 228 OffscreenBuffer** getLayerHandle() { return &mLayer; } // ugh... in getLayerHandle()
|
D | LayerBuilder.h | 37 class OffscreenBuffer; variable 111 OffscreenBuffer* offscreenBuffer;
|
D | FrameBuilder.h | 36 class OffscreenBuffer; variable 89 std::vector<OffscreenBuffer*> temporaryLayers; in replayBakedOps()
|
D | GpuMemoryTracker.h | 35 OffscreenBuffer, enumerator
|
D | FrameBuilder.cpp | 84 OffscreenBuffer* layer = layerNode->getLayer(); in deferLayers() 957 OffscreenBuffer** layerHandle = mAllocator.create<OffscreenBuffer*>(nullptr); in deferBeginUnclippedLayerOp()
|
D | BakedOpDispatcher.cpp | 806 OffscreenBuffer* buffer = *op.layerHandle; in onLayerOp() 854 OffscreenBuffer& layer = **(op.layerHandle); in onCopyFromLayerOp()
|