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
}
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;
#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.