Home
last modified time | relevance | path

Searched refs:clipState (Results 1 – 5 of 5) sorted by relevance

/frameworks/base/libs/hwui/
DBakedOpState.cpp55 clipState = snapshot.serializeIntersectedClip(allocator, in ResolvedRenderState()
57 LOG_ALWAYS_FATAL_IF(!clipState, "must clip!"); in ResolvedRenderState()
59 const Rect& clipRect = clipState->rect; in ResolvedRenderState()
65 clipState = nullptr; in ResolvedRenderState()
90 clipState = snapshot.serializeIntersectedClip(allocator, localClip, *(snapshot.transform)); in ResolvedRenderState()
91 clippedBounds = clipState->rect; in ResolvedRenderState()
98 , clipState(snapshot.mutateClipArea().serializeClip(allocator)) in ResolvedRenderState()
99 , clippedBounds(clipState->rect) in ResolvedRenderState()
105 , clipState(clipRect) in ResolvedRenderState()
164 && computedState.clipState->mode == ClipMode::Rectangle in setupOpacity()
DBakedOpState.h78 return clipState->rect; in clipRect()
83 || CC_UNLIKELY(clipState->mode != ClipMode::Rectangle); in requiresClip()
88 return requiresClip() ? clipState : nullptr; in getClipIfNeeded()
92 const ClipBase* clipState = nullptr; variable
DBakedOpDispatcher.cpp241 auto clipState = textOpState.computedState.clipState; in renderTextShadow() local
242 if (clipState->mode != ClipMode::Rectangle in renderTextShadow()
243 || !clipState->rect.contains(shadowBounds)) { in renderTextShadow()
245 shadowBounds.doIntersect(clipState->rect); in renderTextShadow()
248 clipState = nullptr; in renderTextShadow()
251 renderer.renderGlop(&shadowBounds, clipState, glop); in renderTextShadow()
540 .setModelViewMapUnitToRect(state.computedState.clipState->rect) in onColorOp()
739 auto renderTargetClip = state.computedState.clipState; in onTextOnPathOp()
DFrameBuilder.cpp601 return !state.computedState.clipState in hasMergeableClip()
602 || state.computedState.clipState->mode == ClipMode::Rectangle; in hasMergeableClip()
/frameworks/base/libs/hwui/tests/unit/
DFrameBuilderTests.cpp1057 EXPECT_CLIP_RECT(Rect(200, 200), state.computedState.clipState); in RENDERTHREAD_OPENGL_PIPELINE_TEST()
1075 EXPECT_CLIP_RECT(Rect(200, 200), state.computedState.clipState); in RENDERTHREAD_OPENGL_PIPELINE_TEST()
1200 ASSERT_NE(nullptr, state.computedState.clipState); in RENDERTHREAD_OPENGL_PIPELINE_TEST()
1201 EXPECT_EQ(Rect(50, 50, 150, 150), state.computedState.clipState->rect); in RENDERTHREAD_OPENGL_PIPELINE_TEST()
1202 EXPECT_EQ(ClipMode::Rectangle, state.computedState.clipState->mode); in RENDERTHREAD_OPENGL_PIPELINE_TEST()
1816 ASSERT_NE(nullptr, state.computedState.clipState); in RENDERTHREAD_OPENGL_PIPELINE_TEST()
1817 ASSERT_EQ(ClipMode::Rectangle, state.computedState.clipState->mode); in RENDERTHREAD_OPENGL_PIPELINE_TEST()
1818 ASSERT_EQ(Rect(400, 400), state.computedState.clipState->rect); in RENDERTHREAD_OPENGL_PIPELINE_TEST()
2041 EXPECT_EQ(Rect(25, 25, 75, 75), state.computedState.clipState->rect) in RENDERTHREAD_OPENGL_PIPELINE_TEST()
2305 EXPECT_EQ(Rect(20, 10, 30, 40), state.computedState.clipState->rect) in RENDERTHREAD_OPENGL_PIPELINE_TEST()