From e1daac9b2671d723ee26c0fc6e7e54f42d423c6b Mon Sep 17 00:00:00 2001 From: mtklein Date: Tue, 16 Sep 2014 10:12:42 -0700 Subject: Tag recording picture nesting bench as nonrendering. Doesn't hurt as is, but we're running it several times unneccesarily. (I couldn't compile without removing an unused constant in that other GM...) BUG=skia: R=fmalita@google.com, mtklein@google.com Author: mtklein@chromium.org Review URL: https://codereview.chromium.org/570303002 --- bench/PictureNestingBench.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'bench/PictureNestingBench.cpp') diff --git a/bench/PictureNestingBench.cpp b/bench/PictureNestingBench.cpp index f1adb60840..c2848833b7 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; -- cgit v1.2.3