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

Unified Diff: bench/PictureNestingBench.cpp

Issue 570303002: Tag recording picture nesting bench as nonrendering. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 6 years, 3 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 | gm/convexpolyeffect.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: bench/PictureNestingBench.cpp
diff --git a/bench/PictureNestingBench.cpp b/bench/PictureNestingBench.cpp
index f1adb6084026d9703cae83a502425a43cbb1137c..c2848833b747a8d8afaaf09117addeb75129fe04 100644
--- a/bench/PictureNestingBench.cpp
+++ b/bench/PictureNestingBench.cpp
@@ -99,7 +99,11 @@ public:
}
protected:
- virtual void onDraw(const int loops, SkCanvas* canvas) {
+ virtual bool isSuitableFor(Backend backend) {
+ return backend == kNonRendering_Backend;
+ }
+
+ virtual void onDraw(const int loops, SkCanvas*) {
SkIPoint canvasSize = onGetSize();
SkPictureRecorder recorder;
« no previous file with comments | « no previous file | gm/convexpolyeffect.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698