diff options
Diffstat (limited to 'bench/GameBench.cpp')
-rw-r--r-- | bench/GameBench.cpp | 6 |
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); |