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

Unified Diff: src/core/SkBBoxHierarchyRecord.h

Issue 12545009: Adding option in SkPicture to record device-space bounds of draw commands. (Closed) Base URL: http://skia.googlecode.com/svn/trunk/
Patch Set: Created 7 years, 7 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/SkBBoxHierarchyRecord.h
===================================================================
--- src/core/SkBBoxHierarchyRecord.h (revision 9110)
+++ src/core/SkBBoxHierarchyRecord.h (working copy)
@@ -22,7 +22,11 @@
SkBBoxHierarchyRecord(uint32_t recordFlags, SkBBoxHierarchy* h,
SkDevice*);
- virtual void handleBBox(const SkRect& bounds) SK_OVERRIDE;
+#if SK_RECORD_BOUNDS_IN_PICTURE
+ virtual void handleBBox(uint32_t offset) SK_OVERRIDE;
+#else
+ virtual void handleBBox(const SkRect& bbox) SK_OVERRIDE;
+#endif
virtual int save(SaveFlags flags = kMatrixClip_SaveFlag) SK_OVERRIDE;
virtual int saveLayer(const SkRect* bounds, const SkPaint* paint,

Powered by Google App Engine
This is Rietveld 408576698