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

Unified Diff: include/core/SkCanvas.h

Issue 794263002: Cull pushCull and popCull from Skia. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: fix debugger Created 6 years 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
« no previous file with comments | « debugger/QT/SkDebuggerGUI.cpp ('k') | include/utils/SkDumpCanvas.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: include/core/SkCanvas.h
diff --git a/include/core/SkCanvas.h b/include/core/SkCanvas.h
index d28336f7150403b1c3c280ec446c7848ed509d5a..50f15aaaaf95fc062876cfd4ec1942e0f38c5caf 100644
--- a/include/core/SkCanvas.h
+++ b/include/core/SkCanvas.h
@@ -1055,19 +1055,6 @@ public:
// do nothing. Subclasses may do something
}
- /**
- * With this call the client asserts that subsequent draw operations (up to the
- * matching popCull()) are fully contained within the given bounding box. The assertion
- * is not enforced, but the information might be used to quick-reject command blocks,
- * so an incorrect bounding box may result in incomplete rendering.
- */
- void pushCull(const SkRect& cullRect);
-
- /**
- * Terminates the current culling block, and restores the previous one (if any).
- */
- void popCull();
-
//////////////////////////////////////////////////////////////////////////
/** Get the current filter object. The filter's reference count is not
@@ -1250,9 +1237,6 @@ protected:
// can perform copy-on-write or invalidate any cached images
void predrawNotify();
- virtual void onPushCull(const SkRect& cullRect);
- virtual void onPopCull();
-
private:
class MCRec;
@@ -1267,7 +1251,6 @@ private:
int fSaveCount; // value returned by getSaveCount()
int fSaveLayerCount; // number of successful saveLayer calls
- int fCullCount; // number of active culls
SkMetaData* fMetaData;
@@ -1385,9 +1368,6 @@ private:
};
#ifdef SK_DEBUG
- // The cull stack rects are in device-space
- SkTDArray<SkIRect> fCullStack;
- void validateCull(const SkIRect&);
void validateClip() const;
#else
void validateClip() const {}
« no previous file with comments | « debugger/QT/SkDebuggerGUI.cpp ('k') | include/utils/SkDumpCanvas.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698