aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/xps/SkXPSDevice.cpp
diff options
context:
space:
mode:
authorGravatar Mike Reed <reed@google.com>2017-03-19 15:04:17 -0400
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2017-03-19 20:09:25 +0000
commit2f6b5a47a50cdd218bc3302273be3a4a71add8fb (patch)
treef4d09bf9c395b4e406cfdf2625525317b3607f4b /src/xps/SkXPSDevice.cpp
parent919cc4562cc615c7f4b4325def1f7454bc8dd724 (diff)
remove legacy vertices virtual from SkDevice
BUG=skia:6366 Change-Id: I9fb49538f358343a7c2e4541d0044d961ac1b54d Reviewed-on: https://skia-review.googlesource.com/9870 Commit-Queue: Mike Reed <reed@google.com> Reviewed-by: Florin Malita <fmalita@chromium.org>
Diffstat (limited to 'src/xps/SkXPSDevice.cpp')
-rw-r--r--src/xps/SkXPSDevice.cpp11
1 files changed, 4 insertions, 7 deletions
diff --git a/src/xps/SkXPSDevice.cpp b/src/xps/SkXPSDevice.cpp
index ec74e491c2..4a018a97fd 100644
--- a/src/xps/SkXPSDevice.cpp
+++ b/src/xps/SkXPSDevice.cpp
@@ -51,6 +51,7 @@
#include "SkTTCFHeader.h"
#include "SkTypefacePriv.h"
#include "SkUtils.h"
+#include "SkVertices.h"
#include "SkXPSDevice.h"
//Windows defines a FLOAT type,
@@ -1157,13 +1158,9 @@ void SkXPSDevice::drawPoints(SkCanvas::PointMode mode,
draw(this, &SkDraw::drawPoints, mode, count, points, paint, this);
}
-void SkXPSDevice::drawVertices(SkCanvas::VertexMode vertexMode,
- int vertexCount, const SkPoint verts[],
- const SkPoint texs[], const SkColor colors[],
- SkBlendMode blendMode, const uint16_t indices[],
- int indexCount, const SkPaint& paint) {
- draw(this, &SkDraw::drawVertices, vertexMode, vertexCount, verts, texs, colors,
- blendMode, indices, indexCount, paint);
+void SkXPSDevice::drawVertices(const SkVertices* v, SkBlendMode blendMode, const SkPaint& paint) {
+ draw(this, &SkDraw::drawVertices, v->mode(), v->vertexCount(), v->positions(), v->texCoords(),
+ v->colors(), blendMode, v->indices(), v->indexCount(), paint);
}
void SkXPSDevice::drawPaint(const SkPaint& origPaint) {