aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar mtklein <mtklein@chromium.org>2014-09-16 10:12:42 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2014-09-16 10:12:42 -0700
commite1daac9b2671d723ee26c0fc6e7e54f42d423c6b (patch)
tree0745cc1b31cce6f91d6aaa3e3d18a7bacfcbfe4b
parentc506e3007e53fe7d1a77991de11fdb50a86fd532 (diff)
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
-rw-r--r--bench/PictureNestingBench.cpp6
-rw-r--r--gm/convexpolyeffect.cpp6
2 files changed, 5 insertions, 7 deletions
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;
diff --git a/gm/convexpolyeffect.cpp b/gm/convexpolyeffect.cpp
index 0938e58db0..4f84c615d4 100644
--- a/gm/convexpolyeffect.cpp
+++ b/gm/convexpolyeffect.cpp
@@ -22,12 +22,6 @@
#include "effects/GrConvexPolyEffect.h"
-namespace {
-extern const GrVertexAttrib kAttribs[] = {
- {kVec2f_GrVertexAttribType, 0, kPosition_GrVertexAttribBinding},
-};
-}
-
namespace skiagm {
/**
* This GM directly exercises a GrEffect that draws convex polygons.