Searched refs:clipState (Results 1 – 5 of 5) sorted by relevance
/frameworks/base/libs/hwui/ |
D | BakedOpState.cpp | 53 clipState = snapshot.serializeIntersectedClip(allocator, in ResolvedRenderState() 55 LOG_ALWAYS_FATAL_IF(!clipState, "must clip!"); in ResolvedRenderState() 57 const Rect& clipRect = clipState->rect; in ResolvedRenderState() 63 clipState = nullptr; in ResolvedRenderState() 88 clipState = snapshot.serializeIntersectedClip(allocator, localClip, *(snapshot.transform)); in ResolvedRenderState() 89 clippedBounds = clipState->rect; in ResolvedRenderState() 96 , clipState(snapshot.mutateClipArea().serializeClip(allocator)) in ResolvedRenderState() 97 , clippedBounds(clipState->rect) in ResolvedRenderState() 103 , clipState(clipRect) in ResolvedRenderState() 162 && computedState.clipState->mode == ClipMode::Rectangle in setupOpacity()
|
D | BakedOpState.h | 78 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
|
D | BakedOpDispatcher.cpp | 247 auto clipState = textOpState.computedState.clipState; in renderTextShadow() local 248 if (clipState->mode != ClipMode::Rectangle in renderTextShadow() 249 || !clipState->rect.contains(shadowBounds)) { in renderTextShadow() 251 shadowBounds.doIntersect(clipState->rect); in renderTextShadow() 254 clipState = nullptr; in renderTextShadow() 257 renderer.renderGlop(&shadowBounds, clipState, glop); in renderTextShadow() 554 .setModelViewMapUnitToRect(state.computedState.clipState->rect) in onColorOp() 754 auto renderTargetClip = state.computedState.clipState; in onTextOnPathOp()
|
D | FrameBuilder.cpp | 594 return !state.computedState.clipState in hasMergeableClip() 595 || state.computedState.clipState->mode == ClipMode::Rectangle; in hasMergeableClip()
|
/frameworks/base/libs/hwui/tests/unit/ |
D | FrameBuilderTests.cpp | 1000 EXPECT_CLIP_RECT(Rect(200, 200), state.computedState.clipState); in RENDERTHREAD_TEST() 1018 EXPECT_CLIP_RECT(Rect(200, 200), state.computedState.clipState); in RENDERTHREAD_TEST() 1143 ASSERT_NE(nullptr, state.computedState.clipState); in RENDERTHREAD_TEST() 1144 EXPECT_EQ(Rect(50, 50, 150, 150), state.computedState.clipState->rect); in RENDERTHREAD_TEST() 1145 EXPECT_EQ(ClipMode::Rectangle, state.computedState.clipState->mode); in RENDERTHREAD_TEST() 1732 ASSERT_NE(nullptr, state.computedState.clipState); in RENDERTHREAD_TEST() 1733 ASSERT_EQ(ClipMode::Rectangle, state.computedState.clipState->mode); in RENDERTHREAD_TEST() 1734 ASSERT_EQ(Rect(400, 400), state.computedState.clipState->rect); in RENDERTHREAD_TEST() 1957 EXPECT_EQ(Rect(25, 25, 75, 75), state.computedState.clipState->rect) in RENDERTHREAD_TEST() 2221 EXPECT_EQ(Rect(20, 10, 30, 40), state.computedState.clipState->rect) in RENDERTHREAD_TEST()
|