diff options
author | Mike Reed <reed@google.com> | 2017-03-16 09:06:34 -0400 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2017-03-16 20:08:50 +0000 |
commit | 5fa6645dbe4f56a51ce0f59c13c99afb12ff3f5c (patch) | |
tree | adad3431f0f3075b3fd1f82d05035075ad5f3fa9 /src/core/SkDevice.cpp | |
parent | c48af934608bbb65650641f66adb51f2102d4274 (diff) |
remove unused VerticesFlags
Deferring removing the flags parameter from the virtuals until a
later CL (as it collides with another related CL)
BUG=skia:6366
Change-Id: I817fae3df03ecebe5ec3532f691ed06deab890e6
Reviewed-on: https://skia-review.googlesource.com/9739
Reviewed-by: Brian Salomon <bsalomon@google.com>
Commit-Queue: Mike Reed <reed@google.com>
Diffstat (limited to 'src/core/SkDevice.cpp')
-rw-r--r-- | src/core/SkDevice.cpp | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/src/core/SkDevice.cpp b/src/core/SkDevice.cpp index 7c5c2bfdeb..eb507d402b 100644 --- a/src/core/SkDevice.cpp +++ b/src/core/SkDevice.cpp @@ -276,14 +276,11 @@ void SkBaseDevice::drawAtlas(const SkImage* atlas, const SkRSXform xform[], } } -void SkBaseDevice::drawVerticesObject(sk_sp<SkVertices> vertices, - SkBlendMode mode, const SkPaint& paint, uint32_t flags) { - const SkPoint* texs = - (flags & SkCanvas::kIgnoreTexCoords_VerticesFlag) ? nullptr : vertices->texCoords(); - const SkColor* colors = - (flags & SkCanvas::kIgnoreColors_VerticesFlag) ? nullptr : vertices->colors(); - this->drawVertices(vertices->mode(), vertices->vertexCount(), vertices->positions(), texs, - colors, mode, vertices->indices(), vertices->indexCount(), paint); +void SkBaseDevice::drawVerticesObject(sk_sp<SkVertices> vertices, SkBlendMode mode, + const SkPaint& paint, uint32_t deprecatedFlags) { + this->drawVertices(vertices->mode(), vertices->vertexCount(), vertices->positions(), + vertices->texCoords(), vertices->colors(), mode, vertices->indices(), + vertices->indexCount(), paint); } /////////////////////////////////////////////////////////////////////////////////////////////////// |