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

Unified Diff: src/core/SkPictureRecord.h

Issue 138013009: Culling API (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: Comments, formatting. Created 6 years, 10 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/SkPictureRecord.h
diff --git a/src/core/SkPictureRecord.h b/src/core/SkPictureRecord.h
index 0df120b31a121b54f5681e6bed5dc3e75fc5cab3..b9345fedc26a092ad452513f1df899b0c1e63b1d 100644
--- a/src/core/SkPictureRecord.h
+++ b/src/core/SkPictureRecord.h
@@ -116,6 +116,7 @@ private:
#ifndef SK_COLLAPSE_MATRIX_CLIP_STATE
SkTDArray<int32_t> fRestoreOffsetStack;
+ SkTDArray<uint32_t> fCullOffsetStack;
caryclark 2014/02/14 14:54:35 Since the restore offset stack is int and the cull
f(malita) 2014/02/20 02:37:26 Indeed: we store negative values in fRestoreOffset
int fFirstSavedLayerIndex;
enum {
kNoSavedLayerIndex = -1
@@ -221,6 +222,8 @@ public:
protected:
virtual SkSurface* onNewSurface(const SkImageInfo&) SK_OVERRIDE;
+ virtual void onPushCull(const SkRect&) SK_OVERRIDE;
+ virtual void onPopCull() SK_OVERRIDE;
// Return fontmetrics.fTop,fBottom in topbot[0,1], after they have been
// tweaked by paint.computeFastBounds().

Powered by Google App Engine
This is Rietveld 408576698