aboutsummaryrefslogtreecommitdiffhomepage
path: root/bench/GameBench.cpp
diff options
context:
space:
mode:
authorGravatar Mike Reed <reed@google.com>2017-04-03 11:11:09 -0400
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2017-04-03 15:50:16 +0000
commit887cdf112809727c51890ba8b98b3ddce22249f0 (patch)
tree6ae2774f9ec869f72cf117993eba25c6ef97e28b /bench/GameBench.cpp
parentb55dd553124cd00260bc9e3a63ec8a8fe09412a8 (diff)
move vertex-mode enum into SkVertices
BUG=skia:6366 Change-Id: I3c0bf96cce6d32c9b8d12d16a772aaa6f18981aa Reviewed-on: https://skia-review.googlesource.com/11062 Reviewed-by: Florin Malita <fmalita@chromium.org> Commit-Queue: Mike Reed <reed@google.com>
Diffstat (limited to 'bench/GameBench.cpp')
-rw-r--r--bench/GameBench.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/bench/GameBench.cpp b/bench/GameBench.cpp
index 681b823f09..bd7d11465d 100644
--- a/bench/GameBench.cpp
+++ b/bench/GameBench.cpp
@@ -11,6 +11,7 @@
#include "SkRandom.h"
#include "SkShader.h"
#include "SkString.h"
+#include "SkVertices.h"
// This bench simulates the calls Skia sees from various HTML5 canvas
// game bench marks
@@ -200,8 +201,9 @@ protected:
{ SkIntToScalar(src.fRight), SkIntToScalar(src.fTop) },
{ SkIntToScalar(src.fRight), SkIntToScalar(src.fBottom) },
};
- canvas->drawVertices(SkCanvas::kTriangles_VertexMode,
- 4, verts, uvs, nullptr, indices, 6, p2);
+ canvas->drawVertices(SkVertices::MakeCopy(SkVertices::kTriangles_VertexMode,
+ 4, verts, uvs, nullptr, 6, indices),
+ SkBlendMode::kModulate, p2);
} else {
canvas->drawBitmapRect(fAtlas, src, dst, &p,
SkCanvas::kFast_SrcRectConstraint);