Home
last modified time | relevance | path

Searched refs:BakedOpState (Results 1 – 14 of 14) sorted by relevance

/frameworks/base/libs/hwui/
DBakedOpState.cpp110 BakedOpState* BakedOpState::tryConstruct(LinearAllocator& allocator, in tryConstruct()
113 BakedOpState* bakedState = allocator.create_trivial<BakedOpState>( in tryConstruct()
123 BakedOpState* BakedOpState::tryConstructUnbounded(LinearAllocator& allocator, in tryConstructUnbounded()
126 return allocator.create_trivial<BakedOpState>(allocator, snapshot, recordedOp); in tryConstructUnbounded()
129 BakedOpState* BakedOpState::tryStrokeableOpConstruct(LinearAllocator& allocator, in tryStrokeableOpConstruct()
136 BakedOpState* bakedState = allocator.create_trivial<BakedOpState>( in tryStrokeableOpConstruct()
147 BakedOpState* BakedOpState::tryShadowOpConstruct(LinearAllocator& allocator, in tryShadowOpConstruct()
152 return allocator.create_trivial<BakedOpState>(allocator, snapshot, shadowOpPtr); in tryShadowOpConstruct()
155 BakedOpState* BakedOpState::directConstruct(LinearAllocator& allocator, in directConstruct()
157 return allocator.create_trivial<BakedOpState>(clip, dstRect, recordedOp); in directConstruct()
[all …]
DBakedOpState.h44 const BakedOpState*const* states;
104 class BakedOpState {
106 static BakedOpState* tryConstruct(LinearAllocator& allocator,
109 static BakedOpState* tryConstructUnbounded(LinearAllocator& allocator,
119 static BakedOpState* tryStrokeableOpConstruct(LinearAllocator& allocator,
122 static BakedOpState* tryShadowOpConstruct(LinearAllocator& allocator,
125 static BakedOpState* directConstruct(LinearAllocator& allocator,
142 BakedOpState(LinearAllocator& allocator, Snapshot& snapshot, in BakedOpState() function
150 BakedOpState(LinearAllocator& allocator, Snapshot& snapshot, const RecordedOp& recordedOp) in BakedOpState() function
156 BakedOpState(LinearAllocator& allocator, Snapshot& snapshot, const ShadowOp* shadowOpPtr) in BakedOpState() function
[all …]
DLayerBuilder.cpp31 BatchBase(batchid_t batchId, BakedOpState* op, bool merging) in BatchBase()
41 for (const BakedOpState* op : mOps) { in intersects()
52 const std::vector<BakedOpState*>& getOps() const { return mOps; } in getOps()
61 std::vector<BakedOpState*> mOps;
67 OpBatch(batchid_t batchId, BakedOpState* op) in OpBatch()
71 void batchOp(BakedOpState* op) { in batchOp()
79 MergingOpBatch(batchid_t batchId, BakedOpState* op) in MergingOpBatch()
125 bool canMergeWith(BakedOpState* op) const { in canMergeWith()
135 const BakedOpState* lhs = op; in canMergeWith()
136 const BakedOpState* rhs = mOps[0]; in canMergeWith()
[all …]
DLayerBuilder.h31 class BakedOpState; variable
63 typedef void (*BakedOpReceiver)(void*, const BakedOpState&);
88 void deferUnmergeableOp(LinearAllocator& allocator, BakedOpState* op, batchid_t batchId);
93 BakedOpState* op, batchid_t batchId, mergeid_t mergeId);
116 std::vector<BakedOpState*> activeUnclippedSaveLayers;
118 void onDeferOp(LinearAllocator& allocator, const BakedOpState* bakedState);
DFrameBuilder.h34 class BakedOpState; variable
100 [](void* renderer, const BakedOpState& state) { \ in replayBakedOps()
184 BakedOpState* tryBakeOpState(const RecordedOp& recordedOp) { in tryBakeOpState()
185 return BakedOpState::tryConstruct(mAllocator, *mCanvasState.writableSnapshot(), recordedOp); in tryBakeOpState()
187 BakedOpState* tryBakeUnboundedOpState(const RecordedOp& recordedOp) { in tryBakeUnboundedOpState()
188 …return BakedOpState::tryConstructUnbounded(mAllocator, *mCanvasState.writableSnapshot(), recordedO… in tryBakeUnboundedOpState()
213 BakedOpState* deferStrokeableOp(const RecordedOp& op, batchid_t batchId,
214BakedOpState::StrokeBehavior strokeBehavior = BakedOpState::StrokeBehavior::StyleDefined);
DFrameBuilder.cpp285 BakedOpState* bakedOpState = tryBakeOpState(*drawLayerOp); in deferNodePropsAndOps()
458 BakedOpState* bakedOpState = BakedOpState::tryShadowOpConstruct( in deferShadow()
561 BakedOpState* FrameBuilder::deferStrokeableOp(const RecordedOp& op, batchid_t batchId, in deferStrokeableOp()
562 BakedOpState::StrokeBehavior strokeBehavior) { in deferStrokeableOp()
564 BakedOpState* bakedState = BakedOpState::tryStrokeableOpConstruct( in deferStrokeableOp()
593 static bool hasMergeableClip(const BakedOpState& state) { in hasMergeableClip()
599 BakedOpState* bakedState = tryBakeOpState(op); in deferBitmapOp()
623 BakedOpState* bakedState = tryBakeOpState(op); in deferBitmapMeshOp()
629 BakedOpState* bakedState = tryBakeOpState(op); in deferBitmapRectOp()
662 BakedOpState* bakedState = tryBakeUnboundedOpState(op); in deferColorOp()
[all …]
DBakedOpDispatcher.cpp48 const BakedOpState& firstState = *(opList.states[0]); in onMergedBitmapOps()
62 const BakedOpState& state = *(opList.states[i]); in onMergedBitmapOps()
94 const BakedOpState& firstState = *(opList.states[0]); in onMergedPatchOps()
125 const BakedOpState& state = *opList.states[i]; in onMergedPatchOps()
198 const TextOp& op, const BakedOpState& textOpState) { in renderTextShadow()
265 static void renderText(BakedOpRenderer& renderer, const TextOp& op, const BakedOpState& state, in renderText()
323 const BakedOpState& state = *(opList.states[i]); in onMergedTextOps()
331 const BakedOpState& state = *(opList.states[i]); in onMergedTextOps()
346 static void renderVertexBuffer(BakedOpRenderer& renderer, const BakedOpState& state, in renderVertexBuffer()
366 static void renderConvexPath(BakedOpRenderer& renderer, const BakedOpState& state, in renderConvexPath()
[all …]
DFontRenderer.h48 class BakedOpState; variable
60 const BakedOpState* bakedState, in TextDrawFunctor()
84 const BakedOpState* bakedState;
DBakedOpRenderer.h80 void renderGlop(const BakedOpState& state, const Glop& glop) { in renderGlop()
85 void renderFunctor(const FunctorOp& op, const BakedOpState& state);
DBakedOpDispatcher.h44 static void on##Type(BakedOpRenderer& renderer, const Type& op, const BakedOpState& state);
DBakedOpRenderer.cpp355 void BakedOpRenderer::renderFunctor(const FunctorOp& op, const BakedOpState& state) { in renderFunctor()
/frameworks/base/libs/hwui/tests/unit/
DBakedOpStateTests.cpp178 TEST(BakedOpState, tryConstruct) { in TEST() argument
188 EXPECT_NE(nullptr, BakedOpState::tryConstruct(allocator, *snapshot, successOp)) in TEST()
194 EXPECT_EQ(nullptr, BakedOpState::tryConstruct(allocator, *snapshot, rejectOp)) in TEST()
201 TEST(BakedOpState, tryShadowOpConstruct) { in TEST() argument
208BakedOpState* bakedState = BakedOpState::tryShadowOpConstruct(allocator, *snapshot, (ShadowOp*)0x1… in TEST()
216BakedOpState* bakedState = BakedOpState::tryShadowOpConstruct(allocator, *snapshot, (ShadowOp*)0x1… in TEST()
226 TEST(BakedOpState, tryStrokeableOpConstruct) { in TEST() argument
236 auto bakedState = BakedOpState::tryStrokeableOpConstruct(allocator, *snapshot, rejectOp, in TEST()
237 BakedOpState::StrokeBehavior::StyleDefined); in TEST()
250 auto bakedState = BakedOpState::tryStrokeableOpConstruct(allocator, *snapshot, rejectOp, in TEST()
[all …]
DFrameBuilderTests.cpp66 virtual void on##Type(const Type&, const BakedOpState&) { \
94 static void on##Type(TestRendererBase& renderer, const Type& op, const BakedOpState& state) { \
119 void onRectOp(const RectOp& op, const BakedOpState& state) override { in RENDERTHREAD_TEST()
122 void onBitmapOp(const BitmapOp& op, const BakedOpState& state) override { in RENDERTHREAD_TEST()
148 void onPointsOp(const PointsOp& op, const BakedOpState& state) override { in RENDERTHREAD_TEST()
193 void onBitmapOp(const BitmapOp& op, const BakedOpState& state) override { in RENDERTHREAD_TEST()
196 void onRectOp(const RectOp& op, const BakedOpState& state) override { in RENDERTHREAD_TEST()
229 void onRectOp(const RectOp& op, const BakedOpState& state) override { in RENDERTHREAD_TEST()
255 void onRectOp(const RectOp& op, const BakedOpState& state) override { in RENDERTHREAD_TEST()
368 void onRectOp(const RectOp& op, const BakedOpState& state) override { in RENDERTHREAD_TEST()
[all …]
DBakedOpDispatcherTests.cpp53 typedef void (*TestBakedOpReceiver)(BakedOpRenderer&, const BakedOpState&);
60 auto state = BakedOpState::tryConstruct(allocator, *snapshot, *op); in testUnmergedGlopDispatch()
72 [](BakedOpRenderer& renderer, const BakedOpState& state) { \ in testUnmergedGlopDispatch()