Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(104)

Unified Diff: src/core/SkClipStack.cpp

Issue 2263373002: check for wide-open inside quickContains (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: src/core/SkClipStack.cpp
diff --git a/src/core/SkClipStack.cpp b/src/core/SkClipStack.cpp
index 12ad3bb27c28fc282180558355efbd1864e9f60f..8bab5865ef6405b1195235633f8c1d5c726eec5d 100644
--- a/src/core/SkClipStack.cpp
+++ b/src/core/SkClipStack.cpp
@@ -621,7 +621,7 @@ void SkClipStack::getBounds(SkRect* canvFiniteBound,
}
}
-bool SkClipStack::quickContains(const SkRect& rect) const {
+bool SkClipStack::internalQuickContains(const SkRect& rect) const {
Iter iter(*this, Iter::kTop_IterStart);
const Element* element = iter.prev();
@@ -646,7 +646,7 @@ bool SkClipStack::quickContains(const SkRect& rect) const {
return true;
}
-bool SkClipStack::quickContains(const SkRRect& rrect) const {
+bool SkClipStack::internalQuickContains(const SkRRect& rrect) const {
Iter iter(*this, Iter::kTop_IterStart);
const Element* element = iter.prev();
@@ -771,10 +771,6 @@ void SkClipStack::clipEmpty() {
((Element*)fDeque.back())->fGenID = kEmptyGenID;
}
-bool SkClipStack::isWideOpen() const {
- return this->getTopmostGenID() == kWideOpenGenID;
-}
-
///////////////////////////////////////////////////////////////////////////////
SkClipStack::Iter::Iter() : fStack(nullptr) {

Powered by Google App Engine
This is Rietveld 408576698