Home
last modified time | relevance | path

Searched refs:computedState (Results 1 – 10 of 10) sorted by relevance

/frameworks/base/libs/hwui/
DLayerBuilder.cpp33 mBounds = op->computedState.clippedBounds; in BatchBase()
41 if (rect.intersects(op->computedState.clippedBounds)) { in intersects()
70 mBounds.unionWith(op->computedState.clippedBounds); in batchOp()
78 : BatchBase(batchId, op, true), mClipSideFlags(op->computedState.clipSideFlags) {} in MergingOpBatch()
126 if (intersects(op->computedState.clippedBounds)) return false; in canMergeWith()
139 if (lhs->computedState.localProjectionPathMask || in canMergeWith()
140 rhs->computedState.localProjectionPathMask) in canMergeWith()
149 const int newFlags = op->computedState.clipSideFlags; in canMergeWith()
151 const Rect& opBounds = op->computedState.clippedBounds; in canMergeWith()
182 mBounds.unionWith(op->computedState.clippedBounds); in mergeOp()
[all …]
DBakedOpDispatcher.cpp62 state.computedState.transform.mapRect(opBounds); in onMergedBitmapOps()
63 if (CC_LIKELY(state.computedState.transform.isPureTranslate())) { in onMergedBitmapOps()
132 const float tx = floorf(state.computedState.transform.getTranslateX() + in onMergedPatchOps()
134 const float ty = floorf(state.computedState.transform.getTranslateY() + in onMergedPatchOps()
217 .setTransform(textOpState.computedState.transform, TransformFlags::None) in renderTextShadow()
224 auto& transform = textOpState.computedState.transform; in renderTextShadow()
238 auto clipState = textOpState.computedState.clipState; in renderTextShadow()
257 const Matrix4& transform = state.computedState.transform; in renderText()
294 const Rect* localOpClip = pureTranslate ? &state.computedState.clipRect() : nullptr; in renderText()
347 .setTransform(state.computedState.transform, transformFlags) in renderVertexBuffer()
[all …]
DBakedOpState.h131 ResolvedRenderState computedState; variable
143 : computedState(allocator, snapshot, recordedOp, expandForStroke, expandForPathTexture) in BakedOpState()
150 : computedState(allocator, snapshot, recordedOp.localMatrix, recordedOp.localClip) in BakedOpState()
156 : computedState(allocator, snapshot) in BakedOpState()
162 : computedState(clipRect, dstRect) in BakedOpState()
DBakedOpState.cpp118 if (bakedState->computedState.clippedBounds.isEmpty()) { in tryConstruct()
143 if (bakedState->computedState.clippedBounds.isEmpty()) { in tryStrokeableOpConstruct()
166 computedState.opaqueOverClippedBounds = computedState.transform.isSimple() && in setupOpacity()
167 computedState.clipState->mode == ClipMode::Rectangle && in setupOpacity()
DBakedOpRenderer.h79 renderGlop(&state.computedState.clippedBounds, state.computedState.getClipIfNeeded(), glop); in renderGlop()
DBakedOpRenderer.cpp359 prepareRender(&state.computedState.clippedBounds, state.computedState.getClipIfNeeded()); in renderFunctor()
362 auto&& clip = state.computedState.clipRect(); in renderFunctor()
370 state.computedState.transform.copyTo(&info.transform[0]); in renderFunctor()
DFrameBuilder.cpp587 return !state.computedState.clipState || in hasMergeableClip()
588 state.computedState.clipState->mode == ClipMode::Rectangle; in hasMergeableClip()
602 if (bakedState->computedState.transform.isSimple() && in deferBitmapOp()
603 bakedState->computedState.transform.positiveScale() && in deferBitmapOp()
671 if (bakedState->computedState.transform.isPureTranslate() && in deferPatchOp()
704 mCaches.tessellationCache.precacheRoundRect(state->computedState.transform, *(op.paint), in deferRoundRectOp()
737 if (bakedState->computedState.transform.isPureTranslate() && in deferTextOp()
747 auto& totalTransform = bakedState->computedState.transform; in deferTextOp()
DFontRenderer.cpp71 .setTransform(bakedState->computedState.transform, transformFlags) in draw()
/frameworks/base/libs/hwui/tests/unit/
DFrameBuilderTests.cpp150 EXPECT_EQ(Rect(45, 45, 55, 55), state.computedState.clippedBounds) in RENDERTHREAD_OPENGL_PIPELINE_TEST()
176 EXPECT_EQ(Rect(25, 25, 175, 175), state.computedState.clippedBounds); in RENDERTHREAD_OPENGL_PIPELINE_TEST()
177 EXPECT_EQ(OpClipSideFlags::Full, state.computedState.clipSideFlags) in RENDERTHREAD_OPENGL_PIPELINE_TEST()
257 EXPECT_EQ(Rect(5, 10, 55, 60), state.computedState.clippedBounds); in RENDERTHREAD_OPENGL_PIPELINE_TEST()
259 state.computedState.clipSideFlags); in RENDERTHREAD_OPENGL_PIPELINE_TEST()
282 const Rect& clippedBounds = state.computedState.clippedBounds; in RENDERTHREAD_OPENGL_PIPELINE_TEST()
307 EXPECT_EQ(expected, state.computedState.transform); in RENDERTHREAD_OPENGL_PIPELINE_TEST()
564 EXPECT_EQ(OpClipSideFlags::Top, opList.states[0]->computedState.clipSideFlags); in RENDERTHREAD_OPENGL_PIPELINE_TEST()
565 EXPECT_EQ(OpClipSideFlags::None, opList.states[1]->computedState.clipSideFlags); in RENDERTHREAD_OPENGL_PIPELINE_TEST()
633 ASSERT_EQ(0, state->computedState.clipSideFlags) in RENDERTHREAD_OPENGL_PIPELINE_TEST()
[all …]
DBakedOpStateTests.cpp211 EXPECT_MATRIX_APPROX_EQ(translate10x20, bakedState->computedState.transform); in TEST()
212 EXPECT_EQ(Rect(100, 200), bakedState->computedState.clippedBounds); in TEST()
245 EXPECT_EQ(Rect(45, 45, 155, 155), bakedState->computedState.clippedBounds); in TEST()
246 EXPECT_EQ(0, bakedState->computedState.clipSideFlags); in TEST()
260 EXPECT_EQ(Rect(45, 45, 155, 155), bakedState->computedState.clippedBounds); in TEST()
261 EXPECT_EQ(0, bakedState->computedState.clipSideFlags); in TEST()