Home
last modified time | relevance | path

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

/frameworks/base/libs/hwui/tests/unit/
DClipAreaTests.cpp202 ClipRect recordedClip(Rect(100, 100)); in TEST() local
206 auto resolvedClip = area.serializeIntersectedClip(allocator, &recordedClip, translateScale); in TEST()
211 … EXPECT_EQ(resolvedClip, area.serializeIntersectedClip(allocator, &recordedClip, translateScale)) in TEST()
224 ClipRect recordedClip(Rect(100, 100)); in TEST() local
225 … auto resolvedClip = area.serializeIntersectedClip(allocator, &recordedClip, Matrix4::identity()); in TEST()
240 ClipRegion recordedClip; in TEST() local
241 recordedClip.region.setPath(ovalPath, SkRegion(SkIRect::MakeWH(200, 200))); in TEST()
242 recordedClip.rect = Rect(200, 200); in TEST()
246 auto resolvedClip = area.serializeIntersectedClip(allocator, &recordedClip, in TEST()
267 ClipRect recordedClip(Rect(100.12, 100.74)); in TEST() local
[all …]
/frameworks/base/libs/hwui/
DClipArea.cpp418 const ClipBase* recordedClip, const Matrix4& recordedClipTransform) { in serializeIntersectedClip() argument
421 if (!recordedClip) return serializeClip(allocator); in serializeIntersectedClip()
424 if (CC_UNLIKELY(recordedClip->rect.isEmpty())|| mClipRect.isEmpty()) return &sEmptyClipRect; in serializeIntersectedClip()
427 || recordedClip != mLastResolutionClip in serializeIntersectedClip()
429 mLastResolutionClip = recordedClip; in serializeIntersectedClip()
433 && recordedClip->mode == ClipMode::Rectangle in serializeIntersectedClip()
436 auto rectClip = allocator.create<ClipRect>(recordedClip->rect); in serializeIntersectedClip()
442 || recordedClip->mode == ClipMode::Region in serializeIntersectedClip()
443 || cannotFitInRectangleList(*this, recordedClip))) { in serializeIntersectedClip()
446 switch (recordedClip->mode) { in serializeIntersectedClip()
[all …]
DSnapshot.cpp253 const ClipBase* recordedClip, const Matrix4& recordedClipTransform) { in serializeIntersectedClip() argument
255 if (CC_UNLIKELY(recordedClip && recordedClip->intersectWithRoot)) { in serializeIntersectedClip()
261 recordedClip, recordedClipTransform); in serializeIntersectedClip()
264 void Snapshot::applyClip(const ClipBase* recordedClip, const Matrix4& transform) { in applyClip() argument
265 if (CC_UNLIKELY(recordedClip && recordedClip->intersectWithRoot)) { in applyClip()
269 mClipArea->applyClip(recordedClip, transform); in applyClip()
DClipArea.h179 const ClipBase* recordedClip, const Matrix4& recordedClipTransform);
180 void applyClip(const ClipBase* recordedClip, const Matrix4& recordedClipTransform);
DSnapshot.h174 const ClipBase* recordedClip, const Matrix4& recordedClipTransform);