Searched refs:ClipMode (Results 1 – 11 of 11) sorted by relevance
/frameworks/base/libs/hwui/ |
D | ClipArea.cpp | 179 ClipArea::ClipArea() : mMode(ClipMode::Rectangle) {} in ClipArea() 193 mMode = ClipMode::Rectangle; in setEmpty() 201 mMode = ClipMode::Rectangle; in setClip() 211 case ClipMode::Rectangle: in clipRectWithTransform() 214 case ClipMode::RectangleList: in clipRectWithTransform() 217 case ClipMode::Region: in clipRectWithTransform() 255 mMode = ClipMode::Rectangle; in enterRectangleMode() 289 ALOG_ASSERT(mMode == ClipMode::Rectangle); in enterRectangleListMode() 290 mMode = ClipMode::RectangleList; in enterRectangleListMode() 307 ClipMode oldMode = mMode; in enterRegionMode() [all …]
|
D | ClipArea.h | 85 enum class ClipMode { enum 94 explicit ClipBase(ClipMode mode) : mode(mode) {} in ClipBase() 95 explicit ClipBase(const Rect& rect) : mode(ClipMode::Rectangle), rect(rect) {} in ClipBase() 96 const ClipMode mode; 111 : ClipBase(ClipMode::RectangleList), rectList(rectList) {} in ClipRectList() 116 explicit ClipRegion(const SkRegion& region) : ClipBase(ClipMode::Region), region(region) {} in ClipRegion() 117 ClipRegion() : ClipBase(ClipMode::Region) {} in ClipRegion() 140 bool isRegion() const { return ClipMode::Region == mMode; } in isRegion() 142 bool isSimple() const { return mMode == ClipMode::Rectangle; } in isSimple() 144 bool isRectangleList() const { return mMode == ClipMode::RectangleList; } in isRectangleList() [all …]
|
D | BakedOpRenderer.cpp | 239 LOG_ALWAYS_FATAL_IF(clip->mode != ClipMode::RectangleList, in setupStencilRectList() 274 LOG_ALWAYS_FATAL_IF(clip->mode != ClipMode::Region, "can't region clip without region"); in setupStencilRegion() 300 if (CC_UNLIKELY(clip && clip->mode != ClipMode::Rectangle)) { in prepareRender() 317 if (clip->mode == ClipMode::RectangleList) { in prepareRender() 326 if (CC_LIKELY(clip->mode == ClipMode::RectangleList)) { in prepareRender()
|
D | BakedOpState.h | 82 CC_UNLIKELY(clipState->mode != ClipMode::Rectangle); in requiresClip()
|
D | BakedOpState.cpp | 167 computedState.clipState->mode == ClipMode::Rectangle && in setupOpacity()
|
D | FrameBuilder.cpp | 588 state.computedState.clipState->mode == ClipMode::Rectangle; in hasMergeableClip()
|
D | BakedOpDispatcher.cpp | 239 if (clipState->mode != ClipMode::Rectangle || !clipState->rect.contains(shadowBounds)) { in renderTextShadow()
|
/frameworks/base/libs/hwui/tests/unit/ |
D | ClipAreaTests.cpp | 134 ASSERT_EQ(ClipMode::Rectangle, serializedClip->mode); in TEST() 148 ASSERT_EQ(ClipMode::RectangleList, serializedClip->mode); in TEST() 164 ASSERT_EQ(ClipMode::Region, serializedClip->mode); in TEST() 209 ASSERT_EQ(ClipMode::Rectangle, resolvedClip->mode); in TEST() 231 ASSERT_EQ(ClipMode::RectangleList, resolvedClip->mode); in TEST() 254 ASSERT_EQ(ClipMode::Region, resolvedClip->mode); in TEST() 279 EXPECT_EQ(ClipMode::Rectangle, resolvedClip->mode); in TEST() 302 EXPECT_EQ(ClipMode::Region, resolvedClip->mode); in TEST()
|
D | RecordingCanvasTests.cpp | 544 ASSERT_EQ(ClipMode::Rectangle, op.localClip->mode); in OPENGL_PIPELINE_TEST()
|
D | FrameBuilderTests.cpp | 1192 EXPECT_EQ(ClipMode::Rectangle, state.computedState.clipState->mode); in RENDERTHREAD_OPENGL_PIPELINE_TEST() 1811 ASSERT_EQ(ClipMode::Rectangle, state.computedState.clipState->mode); in RENDERTHREAD_OPENGL_PIPELINE_TEST()
|
/frameworks/base/libs/hwui/tests/common/ |
D | TestUtils.h | 49 if ((clipStatePtr)->mode == ClipMode::Rectangle) { \
|