Home
last modified time | relevance | path

Searched refs:bakedState (Results 1 – 7 of 7) sorted by relevance

/frameworks/base/libs/hwui/tests/unit/
DBakedOpStateTests.cpp196 BakedOpState* bakedState = in TEST() local
199 EXPECT_EQ(nullptr, bakedState) << "op should be rejected by clip, so not constructed"; in TEST()
205 BakedOpState* bakedState = in TEST() local
208 ASSERT_NE(nullptr, bakedState) << "NOT rejected by clip, so op should be constructed"; in TEST()
211 EXPECT_MATRIX_APPROX_EQ(translate10x20, bakedState->computedState.transform); in TEST()
212 EXPECT_EQ(Rect(100, 200), bakedState->computedState.clippedBounds); in TEST()
226 auto bakedState = BakedOpState::tryStrokeableOpConstruct( in TEST() local
229 EXPECT_EQ(nullptr, bakedState); in TEST()
241 auto bakedState = BakedOpState::tryStrokeableOpConstruct( in TEST() local
244 ASSERT_NE(nullptr, bakedState); in TEST()
[all …]
/frameworks/base/libs/hwui/
DFrameBuilder.cpp554 BakedOpState* bakedState = BakedOpState::tryStrokeableOpConstruct( in deferStrokeableOp() local
556 if (!bakedState) return nullptr; // quick rejected in deferStrokeableOp()
559 bakedState->setupOpacity(op.paint); in deferStrokeableOp()
562 currentLayer().deferUnmergeableOp(mAllocator, bakedState, batchId); in deferStrokeableOp()
563 return bakedState; in deferStrokeableOp()
592 BakedOpState* bakedState = tryBakeOpState(op); in deferBitmapOp() local
593 if (!bakedState) return; // quick rejected in deferBitmapOp()
596 bakedState->setupOpacity(op.paint); in deferBitmapOp()
602 if (bakedState->computedState.transform.isSimple() && in deferBitmapOp()
603 bakedState->computedState.transform.positiveScale() && in deferBitmapOp()
[all …]
DBakedOpState.cpp116 BakedOpState* bakedState = in tryConstruct() local
118 if (bakedState->computedState.clippedBounds.isEmpty()) { in tryConstruct()
120 allocator.rewindIfLastAlloc(bakedState); in tryConstruct()
123 return bakedState; in tryConstruct()
141 BakedOpState* bakedState = allocator.create_trivial<BakedOpState>( in tryStrokeableOpConstruct() local
143 if (bakedState->computedState.clippedBounds.isEmpty()) { in tryStrokeableOpConstruct()
146 allocator.rewindIfLastAlloc(bakedState); in tryStrokeableOpConstruct()
149 return bakedState; in tryStrokeableOpConstruct()
DFontRenderer.h54 TextDrawFunctor(BakedOpRenderer* renderer, const BakedOpState* bakedState, const ClipBase* clip, in TextDrawFunctor() argument
58 , bakedState(bakedState) in TextDrawFunctor()
70 const BakedOpState* bakedState; variable
DLayerBuilder.cpp237 void LayerBuilder::onDeferOp(LinearAllocator& allocator, const BakedOpState* bakedState) { in onDeferOp() argument
238 if (bakedState->op->opId != RecordedOpId::CopyToLayerOp) { in onDeferOp()
244 bakedState->computedState.opaqueOverClippedBounds && in onDeferOp()
245 bakedState->computedState.clippedBounds.contains(repaintRect) && in onDeferOp()
278 BakedOpState* bakedState = in flushLayerClears() local
280 deferUnmergeableOp(allocator, bakedState, OpBatchType::Vertices); in flushLayerClears()
DLayerBuilder.h118 void onDeferOp(LinearAllocator& allocator, const BakedOpState* bakedState);
DFontRenderer.cpp67 .setRoundRectClipState(bakedState->roundRectClipState) in draw()
69 .setFillTexturePaint(texture.getTexture(), textureFillFlags, paint, bakedState->alpha) in draw()
71 .setTransform(bakedState->computedState.transform, transformFlags) in draw()