Searched refs:bakedState (Results 1 – 7 of 7) sorted by relevance
/frameworks/base/libs/hwui/ |
D | FrameBuilder.cpp | 564 BakedOpState* bakedState = BakedOpState::tryStrokeableOpConstruct( in deferStrokeableOp() local 566 if (!bakedState) return nullptr; // quick rejected in deferStrokeableOp() 569 bakedState->setupOpacity(op.paint); in deferStrokeableOp() 572 currentLayer().deferUnmergeableOp(mAllocator, bakedState, batchId); in deferStrokeableOp() 573 return bakedState; in deferStrokeableOp() 599 BakedOpState* bakedState = tryBakeOpState(op); in deferBitmapOp() local 600 if (!bakedState) return; // quick rejected in deferBitmapOp() 603 bakedState->setupOpacity(op.paint); in deferBitmapOp() 609 if (bakedState->computedState.transform.isSimple() in deferBitmapOp() 610 && bakedState->computedState.transform.positiveScale() in deferBitmapOp() [all …]
|
D | BakedOpState.cpp | 113 BakedOpState* bakedState = allocator.create_trivial<BakedOpState>( in tryConstruct() local 115 if (bakedState->computedState.clippedBounds.isEmpty()) { in tryConstruct() 117 allocator.rewindIfLastAlloc(bakedState); in tryConstruct() 120 return bakedState; in tryConstruct() 136 BakedOpState* bakedState = allocator.create_trivial<BakedOpState>( in tryStrokeableOpConstruct() local 138 if (bakedState->computedState.clippedBounds.isEmpty()) { in tryStrokeableOpConstruct() 141 allocator.rewindIfLastAlloc(bakedState); in tryStrokeableOpConstruct() 144 return bakedState; in tryStrokeableOpConstruct()
|
D | LayerBuilder.cpp | 239 void LayerBuilder::onDeferOp(LinearAllocator& allocator, const BakedOpState* bakedState) { in onDeferOp() argument 240 if (bakedState->op->opId != RecordedOpId::CopyToLayerOp) { in onDeferOp() 246 && bakedState->computedState.opaqueOverClippedBounds in onDeferOp() 247 && bakedState->computedState.clippedBounds.contains(repaintRect) in onDeferOp() 281 BakedOpState* bakedState = BakedOpState::directConstruct(allocator, in flushLayerClears() local 283 deferUnmergeableOp(allocator, bakedState, OpBatchType::Vertices); in flushLayerClears()
|
D | FontRenderer.h | 60 const BakedOpState* bakedState, in TextDrawFunctor() argument 69 , bakedState(bakedState) in TextDrawFunctor() 84 const BakedOpState* bakedState; variable
|
D | LayerBuilder.h | 118 void onDeferOp(LinearAllocator& allocator, const BakedOpState* bakedState);
|
D | FontRenderer.cpp | 72 .setRoundRectClipState(bakedState->roundRectClipState) in draw() 74 .setFillTexturePaint(texture.getTexture(), textureFillFlags, paint, bakedState->alpha) in draw() 75 .setTransform(bakedState->computedState.transform, transformFlags) in draw()
|
/frameworks/base/libs/hwui/tests/unit/ |
D | BakedOpStateTests.cpp | 208 …BakedOpState* bakedState = BakedOpState::tryShadowOpConstruct(allocator, *snapshot, (ShadowOp*)0x1… in TEST() local 210 EXPECT_EQ(nullptr, bakedState) << "op should be rejected by clip, so not constructed"; in TEST() 216 …BakedOpState* bakedState = BakedOpState::tryShadowOpConstruct(allocator, *snapshot, (ShadowOp*)0x1… in TEST() local 218 ASSERT_NE(nullptr, bakedState) << "NOT rejected by clip, so op should be constructed"; in TEST() 221 EXPECT_MATRIX_APPROX_EQ(translate10x20, bakedState->computedState.transform); in TEST() 222 EXPECT_EQ(Rect(100, 200), bakedState->computedState.clippedBounds); in TEST() 236 auto bakedState = BakedOpState::tryStrokeableOpConstruct(allocator, *snapshot, rejectOp, in TEST() local 239 EXPECT_EQ(nullptr, bakedState); in TEST() 250 auto bakedState = BakedOpState::tryStrokeableOpConstruct(allocator, *snapshot, rejectOp, in TEST() local 253 ASSERT_NE(nullptr, bakedState); in TEST() [all …]
|