aboutsummaryrefslogtreecommitdiffhomepage
path: root/gm/bleed.cpp
diff options
context:
space:
mode:
authorGravatar commit-bot@chromium.org <commit-bot@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81>2013-08-16 10:24:37 +0000
committerGravatar commit-bot@chromium.org <commit-bot@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81>2013-08-16 10:24:37 +0000
commiteed779d866e1e239bfb9ebc6a225b7345a41adf9 (patch)
tree5661727de9fcb9d0398ae74cdda92165a75b4297 /gm/bleed.cpp
parentc9917c054567ab03419614f01392ecf13f29da5c (diff)
This CL plumbs in the drawBitmapRectToRect "bleed" flag and makes it live on the simplest GPU path.
R=bsalomon@google.com, reed@google.com, edisonn@google.com, scroggo@google.com, jvanverth@google.com, mtklein@google.com Author: robertphillips@google.com Review URL: https://chromiumcodereview.appspot.com/20806003 git-svn-id: http://skia.googlecode.com/svn/trunk@10765 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'gm/bleed.cpp')
-rw-r--r--gm/bleed.cpp9
1 files changed, 6 insertions, 3 deletions
diff --git a/gm/bleed.cpp b/gm/bleed.cpp
index c5e86624b0..7e90e6d919 100644
--- a/gm/bleed.cpp
+++ b/gm/bleed.cpp
@@ -117,7 +117,8 @@ protected:
// then draw with bleeding
dst = SkRect::MakeXYWH(120, 10, 100, 100);
- canvas->drawBitmapRectToRect(fBitmapSmall, &src, dst, &paint);
+ canvas->drawBitmapRectToRect(fBitmapSmall, &src, dst, &paint,
+ SkCanvas::kBleed_DrawBitmapRectFlag);
// Next test out the GPU's tiling of large textures
@@ -132,7 +133,8 @@ protected:
// then with bleeding
dst = SkRect::MakeXYWH(120, 120, 100, 100);
- canvas->drawBitmapRectToRect(fBitmapBig, &src, dst, &paint);
+ canvas->drawBitmapRectToRect(fBitmapBig, &src, dst, &paint,
+ SkCanvas::kBleed_DrawBitmapRectFlag);
// next draw ~1/4 of the bitmap
src = SkRect::MakeXYWH(1, 1,
@@ -145,7 +147,8 @@ protected:
// then with bleeding
dst = SkRect::MakeXYWH(120, 230, 100, 100);
- canvas->drawBitmapRectToRect(fBitmapBig, &src, dst, &paint);
+ canvas->drawBitmapRectToRect(fBitmapBig, &src, dst, &paint,
+ SkCanvas::kBleed_DrawBitmapRectFlag);
#if SK_SUPPORT_GPU
if (NULL != ctx) {