Searched refs:computedState (Results 1 – 10 of 10) sorted by relevance
/frameworks/base/libs/hwui/ |
D | LayerBuilder.cpp | 34 mBounds = op->computedState.clippedBounds; in BatchBase() 42 if (rect.intersects(op->computedState.clippedBounds)) { in intersects() 72 mBounds.unionWith(op->computedState.clippedBounds); in batchOp() 81 , mClipSideFlags(op->computedState.clipSideFlags) { in MergingOpBatch() 132 if (intersects(op->computedState.clippedBounds)) return false; in canMergeWith() 145 if (lhs->computedState.localProjectionPathMask in canMergeWith() 146 || rhs->computedState.localProjectionPathMask) return false; in canMergeWith() 154 const int newFlags = op->computedState.clipSideFlags; in canMergeWith() 156 const Rect& opBounds = op->computedState.clippedBounds; in canMergeWith() 184 mBounds.unionWith(op->computedState.clippedBounds); in mergeOp() [all …]
|
D | BakedOpDispatcher.cpp | 67 state.computedState.transform.mapRect(opBounds); in onMergedBitmapOps() 68 if (CC_LIKELY(state.computedState.transform.isPureTranslate())) { in onMergedBitmapOps() 139 const float tx = floorf(state.computedState.transform.getTranslateX() in onMergedPatchOps() 141 const float ty = floorf(state.computedState.transform.getTranslateY() in onMergedPatchOps() 226 .setTransform(textOpState.computedState.transform, TransformFlags::None) in renderTextShadow() 233 auto& transform = textOpState.computedState.transform; in renderTextShadow() 247 auto clipState = textOpState.computedState.clipState; in renderTextShadow() 270 const Matrix4& transform = state.computedState.transform; in renderText() 308 const Rect* localOpClip = pureTranslate ? &state.computedState.clipRect() : nullptr; in renderText() 359 .setTransform(state.computedState.transform, transformFlags) in renderVertexBuffer() [all …]
|
D | BakedOpState.h | 132 ResolvedRenderState computedState; variable 144 : computedState(allocator, snapshot, recordedOp, expandForStroke) in BakedOpState() 151 : computedState(allocator, snapshot, recordedOp.localMatrix, recordedOp.localClip) in BakedOpState() 157 : computedState(allocator, snapshot) in BakedOpState() 163 : computedState(clipRect, dstRect) in BakedOpState()
|
D | BakedOpState.cpp | 115 if (bakedState->computedState.clippedBounds.isEmpty()) { in tryConstruct() 138 if (bakedState->computedState.clippedBounds.isEmpty()) { in tryStrokeableOpConstruct() 161 computedState.opaqueOverClippedBounds = computedState.transform.isSimple() in setupOpacity() 162 && computedState.clipState->mode == ClipMode::Rectangle in setupOpacity()
|
D | BakedOpRenderer.h | 81 renderGlop(&state.computedState.clippedBounds, in renderGlop() 82 state.computedState.getClipIfNeeded(), in renderGlop()
|
D | BakedOpRenderer.cpp | 356 prepareRender(&state.computedState.clippedBounds, state.computedState.getClipIfNeeded()); in renderFunctor() 359 auto&& clip = state.computedState.clipRect(); in renderFunctor() 367 state.computedState.transform.copyTo(&info.transform[0]); in renderFunctor()
|
D | FrameBuilder.cpp | 594 return !state.computedState.clipState in hasMergeableClip() 595 || state.computedState.clipState->mode == ClipMode::Rectangle; in hasMergeableClip() 609 if (bakedState->computedState.transform.isSimple() in deferBitmapOp() 610 && bakedState->computedState.transform.positiveScale() in deferBitmapOp() 686 if (bakedState->computedState.transform.isPureTranslate() in deferPatchOp() 720 mCaches.tessellationCache.precacheRoundRect(state->computedState.transform, *(op.paint), in deferRoundRectOp() 754 if (bakedState->computedState.transform.isPureTranslate() in deferTextOp() 764 auto& totalTransform = bakedState->computedState.transform; in deferTextOp()
|
D | FontRenderer.cpp | 75 .setTransform(bakedState->computedState.transform, transformFlags) in draw()
|
/frameworks/base/libs/hwui/tests/unit/ |
D | FrameBuilderTests.cpp | 153 EXPECT_EQ(Rect(45, 45, 55, 55), state.computedState.clippedBounds) in RENDERTHREAD_TEST() 231 EXPECT_EQ(Rect(5, 10, 55, 60), state.computedState.clippedBounds); in RENDERTHREAD_TEST() 233 state.computedState.clipSideFlags); in RENDERTHREAD_TEST() 256 const Rect& clippedBounds = state.computedState.clippedBounds; in RENDERTHREAD_TEST() 281 EXPECT_EQ(expected, state.computedState.transform); in RENDERTHREAD_TEST() 517 EXPECT_EQ(OpClipSideFlags::Top, opList.states[0]->computedState.clipSideFlags); in RENDERTHREAD_TEST() 518 EXPECT_EQ(OpClipSideFlags::None, opList.states[1]->computedState.clipSideFlags); in RENDERTHREAD_TEST() 590 ASSERT_EQ(0, state->computedState.clipSideFlags) in RENDERTHREAD_TEST() 594 Rect fill = opList.states[0]->computedState.clippedBounds; in RENDERTHREAD_TEST() 595 Rect stroke = opList.states[1]->computedState.clippedBounds; in RENDERTHREAD_TEST() [all …]
|
D | BakedOpStateTests.cpp | 221 EXPECT_MATRIX_APPROX_EQ(translate10x20, bakedState->computedState.transform); in TEST() 222 EXPECT_EQ(Rect(100, 200), bakedState->computedState.clippedBounds); in TEST() 254 EXPECT_EQ(Rect(45, 45, 155, 155), bakedState->computedState.clippedBounds); in TEST() 255 EXPECT_EQ(0, bakedState->computedState.clipSideFlags); in TEST() 269 EXPECT_EQ(Rect(45, 45, 155, 155), bakedState->computedState.clippedBounds); in TEST() 270 EXPECT_EQ(0, bakedState->computedState.clipSideFlags); in TEST()
|