Home
last modified time | relevance | path

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

12

/external/skia/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/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/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/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/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.cpp33 virtual DrawResult onCoverClipStack(const SkClipStack&, SkCanvas*, SkString* errorMsg) = 0;
43 SkClipStack stack; in onDraw()
71 DrawResult onCoverClipStack(const SkClipStack&, SkCanvas*, SkString* errorMsg) final;
74 DrawResult WindowRectanglesGM::onCoverClipStack(const SkClipStack& stack, SkCanvas* canvas, in onCoverClipStack()
80 SkClipStack::Iter iter(stack, SkClipStack::Iter::kBottom_IterStart); in onCoverClipStack()
81 for (const SkClipStack::Element* element = iter.next(); element; element = iter.next()) { in onCoverClipStack()
85 case SkClipStack::Element::DeviceSpaceType::kPath: in onCoverClipStack()
88 case SkClipStack::Element::DeviceSpaceType::kRRect: in onCoverClipStack()
91 case SkClipStack::Element::DeviceSpaceType::kRect: in onCoverClipStack()
94 case SkClipStack::Element::DeviceSpaceType::kEmpty: 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.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 …]
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);
DGrAppliedClip.h31 bool hasStencilClip() const { return SkClipStack::kInvalidGenID != fStencilStackID; } in hasStencilClip()
53 SkASSERT(SkClipStack::kInvalidGenID == fStencilStackID); in addStencilClip()
71 uint32_t fStencilStackID = SkClipStack::kInvalidGenID;
DGrClipStackClip.cpp31 typedef SkClipStack::Element Element;
326 const SkClipStack& stack, uint32_t clipGenID, in add_invalidate_on_pop_message()
330 SkClipStack::Iter iter(stack, SkClipStack::Iter::kTop_IterStart); in add_invalidate_on_pop_message()
/external/skia/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.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 …]
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);
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/pdf/
DSkPDFDevice.h120 uint32_t fClipStackGenID = SkClipStack::kWideOpenGenID;
174 void updateClip(const SkClipStack* clipStack, const SkIRect& bounds);
206 SkDynamicMemoryWStream* setUpContentEntry(const SkClipStack* clipStack,
211 void finishContentEntry(const SkClipStack*, SkBlendMode, SkPDFIndirectReference, SkPath*);
223 void internalDrawPath(const SkClipStack&,
229 void internalDrawPathWithFilter(const SkClipStack& clipStack,
DSkPDFDevice.cpp221 static bool is_rect(const SkClipStack& clipStack, const SkRect& bounds, SkRect* dst) { in is_rect()
223 SkClipStack::Iter iter(clipStack, SkClipStack::Iter::kBottom_IterStart); in is_rect()
224 while (const SkClipStack::Element* element = iter.next()) { in is_rect()
227 case SkClipStack::Element::DeviceSpaceType::kEmpty: in is_rect()
229 case SkClipStack::Element::DeviceSpaceType::kRect: in is_rect()
250 static void append_clip(const SkClipStack& clipStack, in append_clip()
286 void SkPDFDevice::GraphicStackState::updateClip(const SkClipStack* clipStack, in updateClip()
289 : SkClipStack::kWideOpenGenID; in updateClip()
300 SkASSERT(currentEntry()->fClipStackGenID == SkClipStack::kWideOpenGenID); in updateClip()
301 if (clipStackGenID != SkClipStack::kWideOpenGenID) { in updateClip()
[all …]
/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,
DSkPDFDevice.cpp221 static bool is_rect(const SkClipStack& clipStack, const SkRect& bounds, SkRect* dst) { in is_rect()
223 SkClipStack::Iter iter(clipStack, SkClipStack::Iter::kBottom_IterStart); in is_rect()
224 while (const SkClipStack::Element* element = iter.next()) { in is_rect()
227 case SkClipStack::Element::DeviceSpaceType::kEmpty: in is_rect()
229 case SkClipStack::Element::DeviceSpaceType::kRect: in is_rect()
250 static void append_clip(const SkClipStack& clipStack, in append_clip()
286 void SkPDFDevice::GraphicStackState::updateClip(const SkClipStack* clipStack, in updateClip()
289 : SkClipStack::kWideOpenGenID; in updateClip()
300 SkASSERT(currentEntry()->fClipStackGenID == SkClipStack::kWideOpenGenID); in updateClip()
301 if (clipStackGenID != SkClipStack::kWideOpenGenID) { in updateClip()
[all …]

12