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

Unified Diff: src/core/SkBBoxRecord.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/SkBBoxRecord.h
===================================================================
--- src/core/SkBBoxRecord.h (revision 9110)
+++ src/core/SkBBoxRecord.h (working copy)
@@ -27,7 +27,11 @@
* This is called each time we get a bounding box, it will be axis-aligned,
* in device coordinates, and expanded to include stroking, shadows, etc.
*/
+#if SK_RECORD_BOUNDS_IN_PICTURE
+ virtual void handleBBox(uint32_t offset) = 0;
+#else
virtual void handleBBox(const SkRect& bbox) = 0;
+#endif
virtual void drawOval(const SkRect& rect, const SkPaint& paint) SK_OVERRIDE;
virtual void drawRRect(const SkRRect& rrect, const SkPaint& paint) SK_OVERRIDE;

Powered by Google App Engine
This is Rietveld 408576698