diff options
author | reed <reed@chromium.org> | 2015-07-16 06:10:02 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-07-16 06:10:02 -0700 |
commit | 6fb0b6779e40ce05c20cf279f0ecff31fa3cd60d (patch) | |
tree | bd36f1f0315eae23db39853f1a17917cc680fc20 /bench | |
parent | 18a240d15ca132fab01ba179bd1165d6a182f1cf (diff) |
guard to remove DrawBitmapRectFlags
BUG=skia:
Review URL: https://codereview.chromium.org/1235393003
Diffstat (limited to 'bench')
-rw-r--r-- | bench/BitmapRectBench.cpp | 2 | ||||
-rw-r--r-- | bench/GameBench.cpp | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/bench/BitmapRectBench.cpp b/bench/BitmapRectBench.cpp index d3a7574e04..596c18f5a9 100644 --- a/bench/BitmapRectBench.cpp +++ b/bench/BitmapRectBench.cpp @@ -96,7 +96,7 @@ protected: paint.setAlpha(fAlpha); for (int i = 0; i < loops; i++) { - canvas->drawBitmapRectToRect(fBitmap, &fSrcR, fDstR, &paint); + canvas->drawBitmapRect(fBitmap, &fSrcR, fDstR, &paint); } } diff --git a/bench/GameBench.cpp b/bench/GameBench.cpp index d9a397e190..3d9885f692 100644 --- a/bench/GameBench.cpp +++ b/bench/GameBench.cpp @@ -204,11 +204,11 @@ protected: 4, verts, uvs, NULL, NULL, indices, 6, p2); } else { - canvas->drawBitmapRect(fAtlas, &src, dst, &p, - SkCanvas::kBleed_DrawBitmapRectFlag); + canvas->drawBitmapRect(fAtlas, src, dst, &p, + SkCanvas::kFast_SrcRectConstraint); } } else { - canvas->drawBitmapRect(fCheckerboard, NULL, dst, &p); + canvas->drawBitmapRect(fCheckerboard, dst, &p); } } } |