Searched refs:recordedClip (Results 1 – 5 of 5) sorted by relevance
/frameworks/base/libs/hwui/tests/unit/ |
D | ClipAreaTests.cpp | 203 ClipRect recordedClip(Rect(100, 100)); in TEST() local 207 auto resolvedClip = area.serializeIntersectedClip(allocator, &recordedClip, translateScale); in TEST() 213 area.serializeIntersectedClip(allocator, &recordedClip, translateScale)) in TEST() 227 ClipRect recordedClip(Rect(100, 100)); in TEST() local 229 area.serializeIntersectedClip(allocator, &recordedClip, Matrix4::identity()); in TEST() 244 ClipRegion recordedClip; in TEST() local 245 recordedClip.region.setPath(ovalPath, SkRegion(SkIRect::MakeWH(200, 200))); in TEST() 246 recordedClip.rect = Rect(200, 200); in TEST() 251 allocator, &recordedClip, in TEST() 272 ClipRect recordedClip(Rect(100.12, 100.74)); in TEST() local [all …]
|
/frameworks/base/libs/hwui/ |
D | Snapshot.cpp | 173 const ClipBase* recordedClip, in serializeIntersectedClip() argument 176 if (CC_UNLIKELY(recordedClip && recordedClip->intersectWithRoot)) { in serializeIntersectedClip() 181 return target->mClipArea->serializeIntersectedClip(allocator, recordedClip, in serializeIntersectedClip() 185 void Snapshot::applyClip(const ClipBase* recordedClip, const Matrix4& transform) { in applyClip() argument 186 if (CC_UNLIKELY(recordedClip && recordedClip->intersectWithRoot)) { in applyClip() 190 mClipArea->applyClip(recordedClip, transform); in applyClip()
|
D | ClipArea.cpp | 402 const ClipBase* recordedClip, in serializeIntersectedClip() argument 405 if (!recordedClip) return serializeClip(allocator); in serializeIntersectedClip() 408 if (CC_UNLIKELY(recordedClip->rect.isEmpty()) || mClipRect.isEmpty()) return &sEmptyClipRect; in serializeIntersectedClip() 410 if (!mLastResolutionResult || recordedClip != mLastResolutionClip || in serializeIntersectedClip() 412 mLastResolutionClip = recordedClip; in serializeIntersectedClip() 415 if (CC_LIKELY(mMode == ClipMode::Rectangle && recordedClip->mode == ClipMode::Rectangle && in serializeIntersectedClip() 418 auto rectClip = allocator.create<ClipRect>(recordedClip->rect); in serializeIntersectedClip() 424 recordedClip->mode == ClipMode::Region || in serializeIntersectedClip() 425 cannotFitInRectangleList(*this, recordedClip))) { in serializeIntersectedClip() 428 switch (recordedClip->mode) { in serializeIntersectedClip() [all …]
|
D | ClipArea.h | 148 LinearAllocator& allocator, const ClipBase* recordedClip, 150 void applyClip(const ClipBase* recordedClip, const Matrix4& recordedClipTransform);
|
D | Snapshot.h | 148 LinearAllocator& allocator, const ClipBase* recordedClip,
|