/third_party/flutter/skia/src/core/ |
D | SkClipStack.cpp | 20 SkClipStack::Element::Element(const Element& that) { in Element() 46 SkClipStack::Element::~Element() { in ~Element() 55 bool SkClipStack::Element::operator== (const Element& element) const { in operator ==() 78 const SkRect& SkClipStack::Element::getBounds() const { in getBounds() 94 bool SkClipStack::Element::contains(const SkRect& rect) const { in contains() 110 bool SkClipStack::Element::contains(const SkRRect& rrect) const { in contains() 127 void SkClipStack::Element::invertShapeFillType() { in invertShapeFillType() 150 void SkClipStack::Element::initCommon(int saveCount, SkClipOp op, bool doAA) { in initCommon() 162 void SkClipStack::Element::initRect(int saveCount, const SkRect& rect, const SkMatrix& m, in initRect() 178 void SkClipStack::Element::initRRect(int saveCount, const SkRRect& rrect, const SkMatrix& m, in initRRect() [all …]
|
D | SkClipStack.h | 33 class SkClipStack { 194 friend class SkClipStack; 213 SkClipStack::BoundsType fFiniteBoundType; 275 SkClipStack(); 276 SkClipStack(void* storage, size_t size); 277 SkClipStack(const SkClipStack& b); 278 ~SkClipStack(); 280 SkClipStack& operator=(const SkClipStack& b); 281 bool operator==(const SkClipStack& b) const; 282 bool operator!=(const SkClipStack& b) const { return !(*this == b); } [all …]
|
D | SkClipStackDevice.cpp | 66 SkClipStack::B2TIter iter(fClipStack); in onClipIsAA() 67 const SkClipStack::Element* element; in onClipIsAA() 78 SkClipStack::BoundsType boundType; in onAsRgnClip() 82 if (isIntersectionOfRects && SkClipStack::kNormal_BoundsType == boundType) { in onAsRgnClip() 98 SkClipStack::BoundsType boundType; in onGetClipType() 102 if (isIntersectionOfRects && SkClipStack::kNormal_BoundsType == boundType) { in onGetClipType()
|
D | SkClipStackDevice.h | 21 SkClipStack& cs() { return fClipStack; } in cs() 22 const SkClipStack& cs() const { return fClipStack; } in cs() 42 intptr_t fStorage[kPreallocCount * sizeof(SkClipStack::Element) / sizeof(intptr_t)]; 43 SkClipStack fClipStack;
|
/third_party/skia/tests/ |
D | ClipStackTest.cpp | 35 SkClipStack s; in test_assign_and_comparison() 66 SkClipStack copy = s; in test_assign_and_comparison() 131 static void assert_count(skiatest::Reporter* reporter, const SkClipStack& stack, in assert_count() 133 SkClipStack::B2TIter iter(stack); in assert_count() 144 SkClipStack stack; in test_iterators() 162 const SkClipStack::Element* element = nullptr; in test_iterators() 164 SkClipStack::B2TIter iter(stack); in test_iterators() 168 REPORTER_ASSERT(reporter, SkClipStack::Element::DeviceSpaceType::kRect == in test_iterators() 178 const SkClipStack::Element* element = nullptr; in test_iterators() 180 SkClipStack::Iter iter(stack, SkClipStack::Iter::kTop_IterStart); in test_iterators() [all …]
|
/third_party/skia/src/core/ |
D | SkClipStack.cpp | 21 SkClipStack::Element::Element(const Element& that) { in Element() 55 SkClipStack::Element::~Element() { in ~Element() 64 bool SkClipStack::Element::operator== (const Element& element) const { in operator ==() 90 const SkRect& SkClipStack::Element::getBounds() const { in getBounds() 112 bool SkClipStack::Element::contains(const SkRect& rect) const { in contains() 129 bool SkClipStack::Element::contains(const SkRRect& rrect) const { in contains() 147 void SkClipStack::Element::invertShapeFillType() { in invertShapeFillType() 173 void SkClipStack::Element::initCommon(int saveCount, SkClipOp op, bool doAA) { in initCommon() 186 void SkClipStack::Element::initRect(int saveCount, const SkRect& rect, const SkMatrix& m, in initRect() 202 void SkClipStack::Element::initRRect(int saveCount, const SkRRect& rrect, const SkMatrix& m, in initRRect() [all …]
|
D | SkClipStack.h | 33 class SkClipStack { 211 friend class SkClipStack; 232 SkClipStack::BoundsType fFiniteBoundType; 301 SkClipStack(); 302 SkClipStack(void* storage, size_t size); 303 SkClipStack(const SkClipStack& b); 304 ~SkClipStack(); 306 SkClipStack& operator=(const SkClipStack& b); 307 bool operator==(const SkClipStack& b) const; 308 bool operator!=(const SkClipStack& b) const { return !(*this == b); } [all …]
|
D | SkClipStackDevice.cpp | 61 SkClipStack::B2TIter iter(fClipStack); in onClipIsAA() 62 const SkClipStack::Element* element; in onClipIsAA() 77 SkClipStack::BoundsType boundType; in onAsRgnClip() 81 if (isIntersectionOfRects && SkClipStack::kNormal_BoundsType == boundType) { in onAsRgnClip() 88 SkClipStack::B2TIter iter(fClipStack); in onAsRgnClip() 114 SkClipStack::BoundsType boundType; in onGetClipType() 118 if (isIntersectionOfRects && SkClipStack::kNormal_BoundsType == boundType) { in onGetClipType()
|
D | SkClipStackDevice.h | 21 SkClipStack& cs() { return fClipStack; } in cs() 22 const SkClipStack& cs() const { return fClipStack; } in cs() 43 intptr_t fStorage[kPreallocCount * sizeof(SkClipStack::Element) / sizeof(intptr_t)]; 44 SkClipStack fClipStack;
|
/third_party/flutter/skia/tests/ |
D | ClipStackTest.cpp | 51 SkClipStack s; in test_assign_and_comparison() 82 SkClipStack copy = s; in test_assign_and_comparison() 148 static void assert_count(skiatest::Reporter* reporter, const SkClipStack& stack, in assert_count() 150 SkClipStack::B2TIter iter(stack); in assert_count() 161 SkClipStack stack; in test_iterators() 179 const SkClipStack::Element* element = nullptr; in test_iterators() 181 SkClipStack::B2TIter iter(stack); in test_iterators() 185 REPORTER_ASSERT(reporter, SkClipStack::Element::DeviceSpaceType::kRect == in test_iterators() 195 const SkClipStack::Element* element = nullptr; in test_iterators() 197 SkClipStack::Iter iter(stack, SkClipStack::Iter::kTop_IterStart); in test_iterators() [all …]
|
/third_party/skia/src/pdf/ |
D | SkPDFGraphicStackState.cpp | 28 static bool is_rect(const SkClipStack& clipStack, const SkRect& bounds, SkRect* dst) { in is_rect() 30 SkClipStack::Iter iter(clipStack, SkClipStack::Iter::kBottom_IterStart); in is_rect() 31 while (const SkClipStack::Element* element = iter.next()) { in is_rect() 34 case SkClipStack::Element::DeviceSpaceType::kEmpty: in is_rect() 36 case SkClipStack::Element::DeviceSpaceType::kRect: in is_rect() 55 static bool is_complex_clip(const SkClipStack& stack) { in is_complex_clip() 56 SkClipStack::Iter iter(stack, SkClipStack::Iter::kBottom_IterStart); in is_complex_clip() 57 while (const SkClipStack::Element* element = iter.next()) { in is_complex_clip() 68 static void apply_clip(const SkClipStack& stack, const SkRect& outerBounds, F fn) { in apply_clip() 71 SkClipStack::Iter iter(stack, SkClipStack::Iter::kBottom_IterStart); in apply_clip() [all …]
|
D | SkPDFDevice.h | 155 SkDynamicMemoryWStream* setUpContentEntry(const SkClipStack* clipStack, 160 void finishContentEntry(const SkClipStack*, SkBlendMode, SkPDFIndirectReference, SkPath*); 173 void internalDrawPath(const SkClipStack&, 179 void internalDrawPathWithFilter(const SkClipStack& clipStack,
|
D | SkPDFGraphicStackState.h | 18 uint32_t fClipStackGenID = SkClipStack::kWideOpenGenID; 31 void updateClip(const SkClipStack* clipStack, const SkIRect& bounds);
|
/third_party/flutter/skia/src/pdf/ |
D | SkPDFGraphicStackState.cpp | 33 static bool is_rect(const SkClipStack& clipStack, const SkRect& bounds, SkRect* dst) { in is_rect() 35 SkClipStack::Iter iter(clipStack, SkClipStack::Iter::kBottom_IterStart); in is_rect() 36 while (const SkClipStack::Element* element = iter.next()) { in is_rect() 39 case SkClipStack::Element::DeviceSpaceType::kEmpty: in is_rect() 41 case SkClipStack::Element::DeviceSpaceType::kRect: in is_rect() 62 static bool is_complex_clip(const SkClipStack& stack) { in is_complex_clip() 63 SkClipStack::Iter iter(stack, SkClipStack::Iter::kBottom_IterStart); in is_complex_clip() 64 while (const SkClipStack::Element* element = iter.next()) { in is_complex_clip() 77 static void apply_clip(const SkClipStack& stack, const SkRect& outerBounds, F fn) { in apply_clip() 80 SkClipStack::Iter iter(stack, SkClipStack::Iter::kBottom_IterStart); in apply_clip() [all …]
|
D | SkPDFDevice.h | 160 SkDynamicMemoryWStream* setUpContentEntry(const SkClipStack* clipStack, 165 void finishContentEntry(const SkClipStack*, SkBlendMode, SkPDFIndirectReference, SkPath*); 177 void internalDrawPath(const SkClipStack&, 183 void internalDrawPathWithFilter(const SkClipStack& clipStack,
|
D | SkPDFGraphicStackState.h | 18 uint32_t fClipStackGenID = SkClipStack::kWideOpenGenID; 31 void updateClip(const SkClipStack* clipStack, const SkIRect& bounds);
|
/third_party/skia/gm/ |
D | windowrectangles.cpp | 42 DrawResult coverClipStack(const SkClipStack&, SkCanvas*, SkString* errorMsg); 49 DrawResult WindowRectanglesGM::coverClipStack(const SkClipStack& stack, SkCanvas* canvas, in coverClipStack() 55 SkClipStack::Iter iter(stack, SkClipStack::Iter::kBottom_IterStart); in coverClipStack() 56 for (const SkClipStack::Element* element = iter.next(); element; element = iter.next()) { in coverClipStack() 61 case SkClipStack::Element::DeviceSpaceType::kShader: in coverClipStack() 64 case SkClipStack::Element::DeviceSpaceType::kPath: in coverClipStack() 67 case SkClipStack::Element::DeviceSpaceType::kRRect: in coverClipStack() 70 case SkClipStack::Element::DeviceSpaceType::kRect: in coverClipStack() 73 case SkClipStack::Element::DeviceSpaceType::kEmpty: in coverClipStack() 85 SkClipStack stack; in onDraw()
|
/third_party/flutter/skia/gm/ |
D | windowrectangles.cpp | 58 virtual DrawResult onCoverClipStack(const SkClipStack&, SkCanvas*, SkString* errorMsg) = 0; 68 SkClipStack stack; in onDraw() 96 DrawResult onCoverClipStack(const SkClipStack&, SkCanvas*, SkString* errorMsg) final; 99 DrawResult WindowRectanglesGM::onCoverClipStack(const SkClipStack& stack, SkCanvas* canvas, in onCoverClipStack() 105 SkClipStack::Iter iter(stack, SkClipStack::Iter::kBottom_IterStart); in onCoverClipStack() 106 for (const SkClipStack::Element* element = iter.next(); element; element = iter.next()) { in onCoverClipStack() 110 case SkClipStack::Element::DeviceSpaceType::kPath: in onCoverClipStack() 113 case SkClipStack::Element::DeviceSpaceType::kRRect: in onCoverClipStack() 116 case SkClipStack::Element::DeviceSpaceType::kRect: in onCoverClipStack() 119 case SkClipStack::Element::DeviceSpaceType::kEmpty: in onCoverClipStack() [all …]
|
/third_party/skia/src/utils/ |
D | SkClipStackUtils.cpp | 11 void SkClipStack_AsPath(const SkClipStack& cs, SkPath* path) { in SkClipStack_AsPath() 15 SkClipStack::Iter iter(cs, SkClipStack::Iter::kBottom_IterStart); in SkClipStack_AsPath() 16 while (const SkClipStack::Element* element = iter.next()) { in SkClipStack_AsPath() 17 if (element->getDeviceSpaceType() == SkClipStack::Element::DeviceSpaceType::kShader) { in SkClipStack_AsPath() 23 if (element->getDeviceSpaceType() != SkClipStack::Element::DeviceSpaceType::kEmpty) { in SkClipStack_AsPath()
|
D | SkClipStackUtils.h | 13 class SkClipStack; variable 19 void SkClipStack_AsPath(const SkClipStack& cs, SkPath* path);
|
/third_party/flutter/skia/src/gpu/ |
D | GrClipStackClip.h | 23 GrClipStackClip(const SkClipStack* stack = nullptr) { this->reset(stack); } 25 void reset(const SkClipStack* stack) { fStack = stack; } in reset() 45 const SkClipStack::Element* element, 65 const SkClipStack* fStack;
|
D | GrReducedClip.cpp | 36 GrReducedClip::GrReducedClip(const SkClipStack& stack, const SkRect& queryBounds, in GrReducedClip() 54 SkClipStack::BoundsType stackBoundsType; in GrReducedClip() 60 bool insideOut = SkClipStack::kInsideOut_BoundsType == stackBoundsType; in GrReducedClip() 68 SkASSERT(SkClipStack::kNormal_BoundsType == stackBoundsType); in GrReducedClip() 75 SkClipStack::Iter iter(stack, SkClipStack::Iter::kTop_IterStart); in GrReducedClip() 101 if (SkClipStack::kNormal_BoundsType == stackBoundsType) { in GrReducedClip() 133 void GrReducedClip::walkStack(const SkClipStack& stack, const SkRect& queryBounds) { in walkStack() 158 SkClipStack::Iter iter(stack, SkClipStack::Iter::kTop_IterStart); in walkStack() 166 if (SkClipStack::kEmptyGenID == element->getGenID()) { in walkStack() 170 if (SkClipStack::kWideOpenGenID == element->getGenID()) { in walkStack() [all …]
|
D | GrReducedClip.h | 26 using Element = SkClipStack::Element; 27 using ElementList = SkTLList<SkClipStack::Element, 16>; 29 GrReducedClip(const SkClipStack&, const SkRect& queryBounds, const GrCaps* caps, 103 void walkStack(const SkClipStack&, const SkRect& queryBounds);
|
D | GrAppliedClip.h | 31 bool hasStencilClip() const { return SkClipStack::kInvalidGenID != fStencilStackID; } in hasStencilClip() 53 SkASSERT(SkClipStack::kInvalidGenID == fStencilStackID); in addStencilClip() 71 uint32_t fStencilStackID = SkClipStack::kInvalidGenID;
|
/third_party/skia/src/svg/ |
D | SkSVGDevice.cpp | 241 const SkClipStack* fClipStack; 243 MxCp(const SkMatrix* mx, const SkClipStack* cs) : fMatrix(mx), fClipStack(cs) {} in MxCp() 724 void SkSVGDevice::syncClipStack(const SkClipStack& cs) { in syncClipStack() 725 SkClipStack::B2TIter iter(cs); in syncClipStack() 727 const SkClipStack::Element* elem; in syncClipStack() 743 auto define_clip = [this](const SkClipStack::Element* e) { in syncClipStack() 752 case SkClipStack::Element::DeviceSpaceType::kEmpty: { in syncClipStack() 756 case SkClipStack::Element::DeviceSpaceType::kRect: { in syncClipStack() 760 case SkClipStack::Element::DeviceSpaceType::kRRect: { in syncClipStack() 770 case SkClipStack::Element::DeviceSpaceType::kPath: { in syncClipStack() [all …]
|