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: tools/PictureRenderer.h

Issue 214953003: split SkPictureRecorder out of SkPicture (Closed) Base URL: http://skia.googlecode.com/svn/trunk/
Patch Set: update to ToT (again) Created 6 years, 8 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: tools/PictureRenderer.h
===================================================================
--- tools/PictureRenderer.h (revision 14159)
+++ tools/PictureRenderer.h (working copy)
@@ -376,8 +376,7 @@
}
PictureRenderer()
- : fPicture(NULL)
- , fJsonSummaryPtr(NULL)
+ : fJsonSummaryPtr(NULL)
, fDeviceType(kBitmap_DeviceType)
, fBBoxHierarchyType(kNone_BBoxHierarchyType)
, fScaleFactor(SK_Scalar1)
@@ -401,7 +400,7 @@
protected:
SkAutoTUnref<SkCanvas> fCanvas;
- SkPicture* fPicture;
+ SkAutoTUnref<SkPicture> fPicture;
bool fUseChecksumBasedFilenames;
ImageResultsSummary* fJsonSummaryPtr;
SkDeviceTypes fDeviceType;
@@ -431,7 +430,7 @@
*/
void scaleToScaleFactor(SkCanvas*);
- SkPicture* createPicture();
+ SkPictureFactory* getFactory();
uint32_t recordFlags();
SkCanvas* setupCanvas();
virtual SkCanvas* setupCanvas(int width, int height);
@@ -665,7 +664,7 @@
virtual SkString getNormalTimeFormat() SK_OVERRIDE { return SkString("%6.4f"); }
private:
- SkAutoTUnref<SkPicture> fReplayer;
+ SkAutoTDelete<SkPictureRecorder> fRecorder;
virtual SkString getConfigNameInternal() SK_OVERRIDE;

Powered by Google App Engine
This is Rietveld 408576698