/frameworks/base/libs/hwui/ |
D | BakedOpState.cpp | 113 BakedOpState* BakedOpState::tryConstruct(LinearAllocator& allocator, Snapshot& snapshot, in tryConstruct() 116 BakedOpState* bakedState = in tryConstruct() 117 allocator.create_trivial<BakedOpState>(allocator, snapshot, recordedOp, false, false); in tryConstruct() 126 BakedOpState* BakedOpState::tryConstructUnbounded(LinearAllocator& allocator, Snapshot& snapshot, in tryConstructUnbounded() 129 return allocator.create_trivial<BakedOpState>(allocator, snapshot, recordedOp); in tryConstructUnbounded() 132 BakedOpState* BakedOpState::tryStrokeableOpConstruct(LinearAllocator& allocator, Snapshot& snapshot, in tryStrokeableOpConstruct() 141 BakedOpState* bakedState = allocator.create_trivial<BakedOpState>( in tryStrokeableOpConstruct() 152 BakedOpState* BakedOpState::tryShadowOpConstruct(LinearAllocator& allocator, Snapshot& snapshot, in tryShadowOpConstruct() 157 return allocator.create_trivial<BakedOpState>(allocator, snapshot, shadowOpPtr); in tryShadowOpConstruct() 160 BakedOpState* BakedOpState::directConstruct(LinearAllocator& allocator, const ClipRect* clip, in directConstruct() [all …]
|
D | BakedOpState.h | 44 const BakedOpState* const* states; 101 class BakedOpState { 103 static BakedOpState* tryConstruct(LinearAllocator& allocator, Snapshot& snapshot, 106 static BakedOpState* tryConstructUnbounded(LinearAllocator& allocator, Snapshot& snapshot, 116 static BakedOpState* tryStrokeableOpConstruct(LinearAllocator& allocator, Snapshot& snapshot, 121 static BakedOpState* tryShadowOpConstruct(LinearAllocator& allocator, Snapshot& snapshot, 124 static BakedOpState* directConstruct(LinearAllocator& allocator, const ClipRect* clip, 141 BakedOpState(LinearAllocator& allocator, Snapshot& snapshot, const RecordedOp& recordedOp, in BakedOpState() function 149 BakedOpState(LinearAllocator& allocator, Snapshot& snapshot, const RecordedOp& recordedOp) in BakedOpState() function 155 BakedOpState(LinearAllocator& allocator, Snapshot& snapshot, const ShadowOp* shadowOpPtr) in BakedOpState() function [all …]
|
D | LayerBuilder.cpp | 31 BatchBase(batchid_t batchId, BakedOpState* op, bool merging) in BatchBase() 40 for (const BakedOpState* op : mOps) { in intersects() 51 const std::vector<BakedOpState*>& getOps() const { return mOps; } in getOps() 61 std::vector<BakedOpState*> mOps; 67 OpBatch(batchid_t batchId, BakedOpState* op) : BatchBase(batchId, op, false) {} in OpBatch() 69 void batchOp(BakedOpState* op) { in batchOp() 77 MergingOpBatch(batchid_t batchId, BakedOpState* op) in MergingOpBatch() 119 bool canMergeWith(BakedOpState* op) const { in canMergeWith() 129 const BakedOpState* lhs = op; in canMergeWith() 130 const BakedOpState* rhs = mOps[0]; in canMergeWith() [all …]
|
D | LayerBuilder.h | 31 class BakedOpState; variable 63 typedef void (*BakedOpReceiver)(void*, const BakedOpState&); 89 void deferUnmergeableOp(LinearAllocator& allocator, BakedOpState* op, batchid_t batchId); 93 void deferMergeableOp(LinearAllocator& allocator, BakedOpState* op, batchid_t batchId, 115 std::vector<BakedOpState*> activeUnclippedSaveLayers; 118 void onDeferOp(LinearAllocator& allocator, const BakedOpState* bakedState);
|
D | FrameBuilder.h | 34 class BakedOpState; variable 99 [](void* renderer, const BakedOpState& state) { \ in replayBakedOps() 178 BakedOpState* tryBakeOpState(const RecordedOp& recordedOp) { in tryBakeOpState() 179 return BakedOpState::tryConstruct(mAllocator, *mCanvasState.writableSnapshot(), recordedOp); in tryBakeOpState() 181 BakedOpState* tryBakeUnboundedOpState(const RecordedOp& recordedOp) { in tryBakeUnboundedOpState() 182 return BakedOpState::tryConstructUnbounded(mAllocator, *mCanvasState.writableSnapshot(), in tryBakeUnboundedOpState() 205 BakedOpState* deferStrokeableOp(const RecordedOp& op, batchid_t batchId, 206 BakedOpState::StrokeBehavior strokeBehavior = 207 BakedOpState::StrokeBehavior::StyleDefined,
|
D | BakedOpDispatcher.cpp | 48 const BakedOpState& firstState = *(opList.states[0]); in onMergedBitmapOps() 57 const BakedOpState& state = *(opList.states[i]); in onMergedBitmapOps() 90 const BakedOpState& firstState = *(opList.states[0]); in onMergedPatchOps() 119 const BakedOpState& state = *opList.states[i]; in onMergedPatchOps() 189 const BakedOpState& textOpState) { in renderTextShadow() 252 static void renderText(BakedOpRenderer& renderer, const TextOp& op, const BakedOpState& state, in renderText() 310 const BakedOpState& state = *(opList.states[i]); in onMergedTextOps() 318 const BakedOpState& state = *(opList.states[i]); in onMergedTextOps() 333 static void renderVertexBuffer(BakedOpRenderer& renderer, const BakedOpState& state, in renderVertexBuffer() 354 static void renderConvexPath(BakedOpRenderer& renderer, const BakedOpState& state, in renderConvexPath() [all …]
|
D | FrameBuilder.cpp | 282 BakedOpState* bakedOpState = tryBakeOpState(*drawLayerOp); in deferNodePropsAndOps() 447 BakedOpState* bakedOpState = BakedOpState::tryShadowOpConstruct( in deferShadow() 550 BakedOpState* FrameBuilder::deferStrokeableOp(const RecordedOp& op, batchid_t batchId, in deferStrokeableOp() 551 BakedOpState::StrokeBehavior strokeBehavior, in deferStrokeableOp() 554 BakedOpState* bakedState = BakedOpState::tryStrokeableOpConstruct( in deferStrokeableOp() 583 deferStrokeableOp(op, tessBatchId(op), BakedOpState::StrokeBehavior::StyleDefined, true); in deferArcOp() 586 static bool hasMergeableClip(const BakedOpState& state) { in hasMergeableClip() 592 BakedOpState* bakedState = tryBakeOpState(op); in deferBitmapOp() 614 BakedOpState* bakedState = tryBakeOpState(op); in deferBitmapMeshOp() 620 BakedOpState* bakedState = tryBakeOpState(op); in deferBitmapRectOp() [all …]
|
D | FontRenderer.h | 48 class BakedOpState; variable 54 TextDrawFunctor(BakedOpRenderer* renderer, const BakedOpState* bakedState, const ClipBase* clip, in TextDrawFunctor() 70 const BakedOpState* bakedState;
|
D | BakedOpRenderer.h | 78 void renderGlop(const BakedOpState& state, const Glop& glop) { in renderGlop() 81 void renderFunctor(const FunctorOp& op, const BakedOpState& state);
|
D | BakedOpDispatcher.h | 44 static void on##Type(BakedOpRenderer& renderer, const Type& op, const BakedOpState& state);
|
D | BakedOpRenderer.cpp | 358 void BakedOpRenderer::renderFunctor(const FunctorOp& op, const BakedOpState& state) { in renderFunctor()
|
D | Android.bp | 211 "BakedOpState.cpp",
|
/frameworks/base/libs/hwui/tests/unit/ |
D | BakedOpStateTests.cpp | 166 TEST(BakedOpState, tryConstruct) { in TEST() argument 176 EXPECT_NE(nullptr, BakedOpState::tryConstruct(allocator, *snapshot, successOp)) in TEST() 182 EXPECT_EQ(nullptr, BakedOpState::tryConstruct(allocator, *snapshot, rejectOp)) in TEST() 189 TEST(BakedOpState, tryShadowOpConstruct) { in TEST() argument 196 BakedOpState* bakedState = in TEST() 197 BakedOpState::tryShadowOpConstruct(allocator, *snapshot, (ShadowOp*)0x1234); in TEST() 205 BakedOpState* bakedState = in TEST() 206 BakedOpState::tryShadowOpConstruct(allocator, *snapshot, (ShadowOp*)0x1234); in TEST() 216 TEST(BakedOpState, tryStrokeableOpConstruct) { in TEST() argument 226 auto bakedState = BakedOpState::tryStrokeableOpConstruct( in TEST() [all …]
|
D | FrameBuilderTests.cpp | 65 virtual void on##Type(const Type&, const BakedOpState&) { \ 93 static void on##Type(TestRendererBase& renderer, const Type& op, const BakedOpState& state) { \ 118 void onRectOp(const RectOp& op, const BakedOpState& state) override { in RENDERTHREAD_OPENGL_PIPELINE_TEST() 121 void onBitmapOp(const BitmapOp& op, const BakedOpState& state) override { in RENDERTHREAD_OPENGL_PIPELINE_TEST() 145 void onPointsOp(const PointsOp& op, const BakedOpState& state) override { in RENDERTHREAD_OPENGL_PIPELINE_TEST() 173 void onArcOp(const ArcOp& op, const BakedOpState& state) override { in RENDERTHREAD_OPENGL_PIPELINE_TEST() 218 void onBitmapOp(const BitmapOp& op, const BakedOpState& state) override { in RENDERTHREAD_OPENGL_PIPELINE_TEST() 221 void onRectOp(const RectOp& op, const BakedOpState& state) override { in RENDERTHREAD_OPENGL_PIPELINE_TEST() 255 void onRectOp(const RectOp& op, const BakedOpState& state) override { in RENDERTHREAD_OPENGL_PIPELINE_TEST() 281 void onRectOp(const RectOp& op, const BakedOpState& state) override { in RENDERTHREAD_OPENGL_PIPELINE_TEST() [all …]
|
D | BakedOpDispatcherTests.cpp | 55 typedef void (*TestBakedOpReceiver)(BakedOpRenderer&, const BakedOpState&); 63 auto state = BakedOpState::tryConstruct(allocator, *snapshot, *op); in testUnmergedGlopDispatch() 75 [](BakedOpRenderer& renderer, const BakedOpState& state) { \ in testUnmergedGlopDispatch()
|