Home
last modified time | relevance | path

Searched refs:ClipMode (Results 1 – 11 of 11) sorted by relevance

/frameworks/base/libs/hwui/
DClipArea.cpp190 : mMode(ClipMode::Rectangle) { in ClipArea()
205 mMode = ClipMode::Rectangle; in setEmpty()
213 mMode = ClipMode::Rectangle; in setClip()
224 case ClipMode::Rectangle: in clipRectWithTransform()
227 case ClipMode::RectangleList: in clipRectWithTransform()
230 case ClipMode::Region: in clipRectWithTransform()
269 mMode = ClipMode::Rectangle; in enterRectangleMode()
304 ALOG_ASSERT(mMode == ClipMode::Rectangle); in enterRectangleListMode()
305 mMode = ClipMode::RectangleList; in enterRectangleListMode()
323 ClipMode oldMode = mMode; in enterRegionMode()
[all …]
DClipArea.h91 enum class ClipMode { enum
100 ClipBase(ClipMode mode) in ClipBase()
103 : mode(ClipMode::Rectangle) in ClipBase()
105 const ClipMode mode;
121 : ClipBase(ClipMode::RectangleList) in ClipRectList()
128 : ClipBase(ClipMode::Region) in ClipRegion()
131 : ClipBase(ClipMode::Region) {} in ClipRegion()
166 return ClipMode::Region == mMode; in isRegion()
170 return mMode == ClipMode::Rectangle; in isSimple()
174 return mMode == ClipMode::RectangleList; in isRectangleList()
[all …]
DBakedOpRenderer.cpp244 …LOG_ALWAYS_FATAL_IF(clip->mode != ClipMode::RectangleList, "can't rectlist clip without rectlist"); in setupStencilRectList()
278 LOG_ALWAYS_FATAL_IF(clip->mode != ClipMode::Region, "can't region clip without region"); in setupStencilRegion()
304 if (CC_UNLIKELY(clip && clip->mode != ClipMode::Rectangle)) { in prepareRender()
321 if (clip->mode == ClipMode::RectangleList) { in prepareRender()
330 if (CC_LIKELY(clip->mode == ClipMode::RectangleList)) { in prepareRender()
DBakedOpState.h83 || CC_UNLIKELY(clipState->mode != ClipMode::Rectangle); in requiresClip()
DBakedOpState.cpp162 && computedState.clipState->mode == ClipMode::Rectangle in setupOpacity()
DFrameBuilder.cpp595 || state.computedState.clipState->mode == ClipMode::Rectangle; in hasMergeableClip()
DBakedOpDispatcher.cpp248 if (clipState->mode != ClipMode::Rectangle in renderTextShadow()
/frameworks/base/libs/hwui/tests/unit/
DClipAreaTests.cpp134 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()
208 ASSERT_EQ(ClipMode::Rectangle, resolvedClip->mode); in TEST()
227 ASSERT_EQ(ClipMode::RectangleList, resolvedClip->mode); in TEST()
249 ASSERT_EQ(ClipMode::Region, resolvedClip->mode); in TEST()
273 EXPECT_EQ(ClipMode::Rectangle, resolvedClip->mode); in TEST()
DRecordingCanvasTests.cpp482 ASSERT_EQ(ClipMode::Rectangle, op.localClip->mode); in TEST()
DFrameBuilderTests.cpp1116 EXPECT_EQ(ClipMode::Rectangle, state.computedState.clipState->mode); in RENDERTHREAD_TEST()
1703 ASSERT_EQ(ClipMode::Rectangle, state.computedState.clipState->mode); in RENDERTHREAD_TEST()
/frameworks/base/libs/hwui/tests/common/
DTestUtils.h58 if ((clipStatePtr)->mode == ClipMode::Rectangle) { \