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

Unified Diff: include/core/SkPicture.h

Issue 454123003: Plumbing for using a BBH in SkRecordDraw. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: clang says asserts are always true Created 6 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
« no previous file with comments | « dm/DMQuiltTask.cpp ('k') | include/core/SkPictureRecorder.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: include/core/SkPicture.h
diff --git a/include/core/SkPicture.h b/include/core/SkPicture.h
index c733e532c291bb64bb5eb52c42991d4ae57e56d1..e3b33e9438618267b865e0e264e1c46919ab7843 100644
--- a/include/core/SkPicture.h
+++ b/include/core/SkPicture.h
@@ -20,7 +20,6 @@
class GrContext;
#endif
-class SkBBHFactory;
class SkBBoxHierarchy;
class SkCanvas;
class SkData;
@@ -289,8 +288,11 @@ private:
typedef SkRefCnt INHERITED;
- SkPicture(int width, int height, SkRecord*); // Takes ownership.
- SkAutoTDelete<SkRecord> fRecord;
+ // Takes ownership of the SkRecord, refs the (optional) BBH.
+ SkPicture(int width, int height, SkRecord*, SkBBoxHierarchy*);
+
+ SkAutoTDelete<SkRecord> fRecord;
+ SkAutoTUnref<SkBBoxHierarchy> fBBH;
bool fRecordWillPlayBackBitmaps; // TODO: const
};
« no previous file with comments | « dm/DMQuiltTask.cpp ('k') | include/core/SkPictureRecorder.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698