Home
last modified time | relevance | path

Searched refs:SkClipStack (Results 1 – 25 of 45) sorted by relevance

12

/external/skqp/src/core/
DSkClipStack.cpp20 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 …]
DSkClipStack.h33 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 …]
DSkClipStackDevice.cpp66 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()
DSkClipStackDevice.h21 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;
/external/skia/src/core/
DSkClipStack.cpp22 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 ==()
89 const SkRect& SkClipStack::Element::getBounds() const { in getBounds()
111 bool SkClipStack::Element::contains(const SkRect& rect) const { in contains()
128 bool SkClipStack::Element::contains(const SkRRect& rrect) const { in contains()
146 void SkClipStack::Element::invertShapeFillType() { in invertShapeFillType()
172 void SkClipStack::Element::initCommon(int saveCount, SkClipOp op, bool doAA) { in initCommon()
184 void SkClipStack::Element::initRect(int saveCount, const SkRect& rect, const SkMatrix& m, in initRect()
200 void SkClipStack::Element::initRRect(int saveCount, const SkRRect& rrect, const SkMatrix& m, in initRRect()
[all …]
DSkClipStack.h34 class SkClipStack {
209 friend class SkClipStack;
229 SkClipStack::BoundsType fFiniteBoundType;
296 SkClipStack();
297 SkClipStack(void* storage, size_t size);
298 SkClipStack(const SkClipStack& b);
299 ~SkClipStack();
301 SkClipStack& operator=(const SkClipStack& b);
302 bool operator==(const SkClipStack& b) const;
303 bool operator!=(const SkClipStack& b) const { return !(*this == b); }
[all …]
DSkClipStackDevice.cpp73 SkClipStack::B2TIter iter(fClipStack); in onClipIsAA()
74 const SkClipStack::Element* element; in onClipIsAA()
89 SkClipStack::BoundsType boundType; in onAsRgnClip()
93 if (isIntersectionOfRects && SkClipStack::kNormal_BoundsType == boundType) { in onAsRgnClip()
100 SkClipStack::B2TIter iter(fClipStack); in onAsRgnClip()
118 SkClipStack::BoundsType boundType; in onGetClipType()
122 if (isIntersectionOfRects && SkClipStack::kNormal_BoundsType == boundType) { in onGetClipType()
DSkClipStackDevice.h21 SkClipStack& cs() { return fClipStack; } in cs()
22 const SkClipStack& cs() const { return fClipStack; } in cs()
44 intptr_t fStorage[kPreallocCount * sizeof(SkClipStack::Element) / sizeof(intptr_t)];
45 SkClipStack fClipStack;
/external/skia/tests/
DClipStackTest.cpp52 SkClipStack s; in test_assign_and_comparison()
83 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 …]
/external/skqp/tests/
DClipStackTest.cpp49 SkClipStack s; in test_assign_and_comparison()
80 SkClipStack copy = s; in test_assign_and_comparison()
146 static void assert_count(skiatest::Reporter* reporter, const SkClipStack& stack, in assert_count()
148 SkClipStack::B2TIter iter(stack); in assert_count()
159 SkClipStack stack; in test_iterators()
177 const SkClipStack::Element* element = nullptr; in test_iterators()
179 SkClipStack::B2TIter iter(stack); in test_iterators()
183 REPORTER_ASSERT(reporter, SkClipStack::Element::DeviceSpaceType::kRect == in test_iterators()
193 const SkClipStack::Element* element = nullptr; in test_iterators()
195 SkClipStack::Iter iter(stack, SkClipStack::Iter::kTop_IterStart); in test_iterators()
[all …]
/external/skia/src/pdf/
DSkPDFGraphicStackState.cpp28 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()
57 static bool is_complex_clip(const SkClipStack& stack) { in is_complex_clip()
58 SkClipStack::Iter iter(stack, SkClipStack::Iter::kBottom_IterStart); in is_complex_clip()
59 while (const SkClipStack::Element* element = iter.next()) { in is_complex_clip()
72 static void apply_clip(const SkClipStack& stack, const SkRect& outerBounds, F fn) { in apply_clip()
75 SkClipStack::Iter iter(stack, SkClipStack::Iter::kBottom_IterStart); in apply_clip()
[all …]
DSkPDFDevice.h157 SkDynamicMemoryWStream* setUpContentEntry(const SkClipStack* clipStack,
162 void finishContentEntry(const SkClipStack*, SkBlendMode, SkPDFIndirectReference, SkPath*);
175 void internalDrawPath(const SkClipStack&,
181 void internalDrawPathWithFilter(const SkClipStack& clipStack,
DSkPDFGraphicStackState.h18 uint32_t fClipStackGenID = SkClipStack::kWideOpenGenID;
31 void updateClip(const SkClipStack* clipStack, const SkIRect& bounds);
/external/skia/src/utils/
DSkClipStackUtils.cpp11 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()
DSkClipStackUtils.h13 class SkClipStack; variable
19 void SkClipStack_AsPath(const SkClipStack& cs, SkPath* path);
/external/skqp/gm/
Dwindowrectangles.cpp33 virtual void onCoverClipStack(const SkClipStack&, SkCanvas*) = 0;
43 SkClipStack stack; in onDraw()
71 void onCoverClipStack(const SkClipStack&, SkCanvas*) final;
74 void WindowRectanglesGM::onCoverClipStack(const SkClipStack& stack, SkCanvas* canvas) { in onCoverClipStack()
79 SkClipStack::Iter iter(stack, SkClipStack::Iter::kBottom_IterStart); in onCoverClipStack()
80 for (const SkClipStack::Element* element = iter.next(); element; element = iter.next()) { in onCoverClipStack()
84 case SkClipStack::Element::DeviceSpaceType::kPath: in onCoverClipStack()
87 case SkClipStack::Element::DeviceSpaceType::kRRect: in onCoverClipStack()
90 case SkClipStack::Element::DeviceSpaceType::kRect: in onCoverClipStack()
93 case SkClipStack::Element::DeviceSpaceType::kEmpty: in onCoverClipStack()
[all …]
/external/skia/gm/
Dwindowrectangles.cpp57 virtual DrawResult onCoverClipStack(const SkClipStack&, SkCanvas*, SkString* errorMsg) = 0;
67 SkClipStack stack; in onDraw()
95 DrawResult onCoverClipStack(const SkClipStack&, SkCanvas*, SkString* errorMsg) final;
98 DrawResult WindowRectanglesGM::onCoverClipStack(const SkClipStack& stack, SkCanvas* canvas, in onCoverClipStack()
104 SkClipStack::Iter iter(stack, SkClipStack::Iter::kBottom_IterStart); in onCoverClipStack()
105 for (const SkClipStack::Element* element = iter.next(); element; element = iter.next()) { in onCoverClipStack()
109 case SkClipStack::Element::DeviceSpaceType::kShader: in onCoverClipStack()
112 case SkClipStack::Element::DeviceSpaceType::kPath: in onCoverClipStack()
115 case SkClipStack::Element::DeviceSpaceType::kRRect: in onCoverClipStack()
118 case SkClipStack::Element::DeviceSpaceType::kRect: in onCoverClipStack()
[all …]
/external/skqp/src/gpu/
DGrClipStackClip.h23 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;
DGrReducedClip.h26 using Element = SkClipStack::Element;
27 using ElementList = SkTLList<SkClipStack::Element, 16>;
29 GrReducedClip(const SkClipStack&, const SkRect& queryBounds, const GrCaps* caps,
104 void walkStack(const SkClipStack&, const SkRect& queryBounds);
DGrReducedClip.cpp36 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 …]
DGrAppliedClip.h31 bool hasStencilClip() const { return SkClipStack::kInvalidGenID != fStencilStackID; } in hasStencilClip()
53 SkASSERT(SkClipStack::kInvalidGenID == fStencilStackID); in addStencilClip()
71 uint32_t fStencilStackID = SkClipStack::kInvalidGenID;
/external/skia/src/gpu/
DGrReducedClip.cpp38 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()
140 void GrReducedClip::walkStack(const SkClipStack& stack, const SkRect& queryBounds) { in walkStack()
165 SkClipStack::Iter iter(stack, SkClipStack::Iter::kTop_IterStart); in walkStack()
173 if (SkClipStack::kEmptyGenID == element->getGenID()) { in walkStack()
177 if (SkClipStack::kWideOpenGenID == element->getGenID()) { in walkStack()
[all …]
DGrReducedClip.h26 using Element = SkClipStack::Element;
27 using ElementList = SkTLList<SkClipStack::Element, 16>;
29 GrReducedClip(const SkClipStack&, const SkRect& queryBounds, const GrCaps* caps,
112 void walkStack(const SkClipStack&, const SkRect& queryBounds);
DGrClipStackClip.h24 const SkClipStack* stack = nullptr,
44 const SkClipStack::Element* element,
66 const SkClipStack* fStack;
/external/skqp/src/pdf/
DSkPDFDevice.h124 uint32_t fClipStackGenID = SkClipStack::kWideOpenGenID;
178 void updateClip(const SkClipStack* clipStack, const SkIRect& bounds);
210 SkDynamicMemoryWStream* setUpContentEntry(const SkClipStack* clipStack,
215 void finishContentEntry(const SkClipStack*, SkBlendMode, SkPDFIndirectReference, SkPath*);
227 void internalDrawPath(const SkClipStack&,
233 void internalDrawPathWithFilter(const SkClipStack& clipStack,

12