aboutsummaryrefslogtreecommitdiffhomepage
path: root/include/gpu/SkGpuDevice.h
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 /include/gpu/SkGpuDevice.h
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 'include/gpu/SkGpuDevice.h')
-rw-r--r--include/gpu/SkGpuDevice.h12
1 files changed, 8 insertions, 4 deletions
diff --git a/include/gpu/SkGpuDevice.h b/include/gpu/SkGpuDevice.h
index 32f874966a..40d2554b00 100644
--- a/include/gpu/SkGpuDevice.h
+++ b/include/gpu/SkGpuDevice.h
@@ -84,7 +84,8 @@ public:
const SkMatrix&, const SkPaint&) SK_OVERRIDE;
virtual void drawBitmapRect(const SkDraw&, const SkBitmap&,
const SkRect* srcOrNull, const SkRect& dst,
- const SkPaint& paint) SK_OVERRIDE;
+ const SkPaint& paint,
+ SkCanvas::DrawBitmapRectFlags flags) SK_OVERRIDE;
virtual void drawSprite(const SkDraw&, const SkBitmap& bitmap,
int x, int y, const SkPaint& paint);
virtual void drawText(const SkDraw&, const void* text, size_t len,
@@ -163,7 +164,8 @@ private:
const SkBitmap& bitmap,
const SkRect* srcRectPtr,
const SkMatrix&,
- const SkPaint&);
+ const SkPaint&,
+ SkCanvas::DrawBitmapRectFlags flags);
/**
* Helper functions called by drawBitmapCommon. By the time these are called the SkDraw's
@@ -176,12 +178,14 @@ private:
const SkRect&,
const SkMatrix&,
const GrTextureParams& params,
- const SkPaint& paint);
+ const SkPaint& paint,
+ SkCanvas::DrawBitmapRectFlags flags);
void drawTiledBitmap(const SkBitmap& bitmap,
const SkRect& srcRect,
const SkMatrix& m,
const GrTextureParams& params,
- const SkPaint& paint);
+ const SkPaint& paint,
+ SkCanvas::DrawBitmapRectFlags flags);
/**
* Returns non-initialized instance.