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

Unified Diff: bench/nanobench.cpp

Issue 513983002: Try out scalar picture sizes (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Update to ToT again 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 | « no previous file | debugger/QT/SkGLWidget.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: bench/nanobench.cpp
diff --git a/bench/nanobench.cpp b/bench/nanobench.cpp
index f2bf30a4515caa38808c26dfbf5f0d4f1abd226a..3dcd9db2d90f72740d5f7f2b833cd4c39b1ca770 100644
--- a/bench/nanobench.cpp
+++ b/bench/nanobench.cpp
@@ -494,7 +494,9 @@ public:
};
SkTileGridFactory factory(info);
SkPictureRecorder recorder;
- pic->draw(recorder.beginRecording(pic->width(), pic->height(), &factory));
+ pic->draw(recorder.beginRecording(pic->cullRect().width(),
+ pic->cullRect().height(),
+ &factory));
pic.reset(recorder.endRecording());
}
« no previous file with comments | « no previous file | debugger/QT/SkGLWidget.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698