aboutsummaryrefslogtreecommitdiffhomepage
path: root/include/utils/SkNoDrawCanvas.h
diff options
context:
space:
mode:
authorGravatar Mike Reed <reed@google.com>2017-03-16 16:54:38 -0400
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2017-03-17 11:03:38 +0000
commit14583e11fd622c686993b741499060a6f3527055 (patch)
treea579bd68be7fdaeac5b00951c637385204b43134 /include/utils/SkNoDrawCanvas.h
parentdea7428b96badfac805e515701f785f292c5af2b (diff)
More SkVertices implementation work
- change virtuals to take const SkVertices*, as we do for TextBobs and Images - override onDrawVerticesObject in recording canvases - deserialize raw-vertices into SkVertices object Possibly a follow-on would intercept the raw-form directly in canvas, and remove the virtual, and only support the object form. BUG=skia:6366 Change-Id: I57a932667ccb3b3b004beb802ac3ae6898e3c6e0 Reviewed-on: https://skia-review.googlesource.com/9633 Commit-Queue: Mike Reed <reed@google.com> Reviewed-by: Brian Salomon <bsalomon@google.com>
Diffstat (limited to 'include/utils/SkNoDrawCanvas.h')
-rw-r--r--include/utils/SkNoDrawCanvas.h5
1 files changed, 1 insertions, 4 deletions
diff --git a/include/utils/SkNoDrawCanvas.h b/include/utils/SkNoDrawCanvas.h
index 14b85549f4..75c15b201e 100644
--- a/include/utils/SkNoDrawCanvas.h
+++ b/include/utils/SkNoDrawCanvas.h
@@ -68,10 +68,7 @@ protected:
const SkPaint*) override {}
void onDrawVertices(VertexMode, int, const SkPoint[], const SkPoint[], const SkColor[],
SkBlendMode, const uint16_t[], int, const SkPaint&) override {}
- void onDrawVerticesObject(sk_sp<SkVertices> vertices, SkBlendMode mode, const SkPaint& paint,
- uint32_t flags) override {
- this->onDrawVerticesObjectFallback(std::move(vertices), mode, paint, flags);
- }
+ void onDrawVerticesObject(const SkVertices*, SkBlendMode, const SkPaint&) override {}
void onDrawAtlas(const SkImage*, const SkRSXform[], const SkRect[], const SkColor[],
int, SkBlendMode, const SkRect*, const SkPaint*) override {}