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

Unified Diff: tools/render_pictures_main.cpp

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/render_pictures_main.cpp
===================================================================
--- tools/render_pictures_main.cpp (revision 14159)
+++ tools/render_pictures_main.cpp (working copy)
@@ -174,9 +174,9 @@
while (FLAGS_bench_record) {
const int kRecordFlags = 0;
- SkPicture other;
- picture->draw(other.beginRecording(picture->width(), picture->height(), kRecordFlags));
- other.endRecording();
+ SkPictureRecorder recorder;
+ picture->draw(recorder.beginRecording(picture->width(), picture->height(), kRecordFlags));
+ SkAutoTUnref<SkPicture> other(recorder.endRecording());
}
for (int i = 0; i < FLAGS_clone; ++i) {
« samplecode/SampleTiling.cpp ('K') | « tools/filtermain.cpp ('k') | tools/skpmaker.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698