diff options
author | robertphillips@google.com <robertphillips@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2012-09-28 18:06:49 +0000 |
---|---|---|
committer | robertphillips@google.com <robertphillips@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2012-09-28 18:06:49 +0000 |
commit | bac6b0575a28792a6be350af44c0b05975d2a66b (patch) | |
tree | 5b03e59a60c068813c55fb33448947208d44f71f /include | |
parent | 67d91be9bb64c532452f9d9d67b20f492ea0ad57 (diff) |
Update Ganesh to support fractional rects in drawBitmapRect
https://codereview.appspot.com/6561070/
git-svn-id: http://skia.googlecode.com/svn/trunk@5724 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'include')
-rw-r--r-- | include/gpu/SkGpuDevice.h | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/include/gpu/SkGpuDevice.h b/include/gpu/SkGpuDevice.h index 45ae05a8ae..c9d54e58e3 100644 --- a/include/gpu/SkGpuDevice.h +++ b/include/gpu/SkGpuDevice.h @@ -157,14 +157,24 @@ private: void prepareRenderTarget(const SkDraw&); bool shouldTileBitmap(const SkBitmap& bitmap, const GrTextureParams& sampler, - const SkIRect* srcRectPtr, - int* tileSize) const; + const SkRect* srcRectPtr) const; void internalDrawBitmap(const SkDraw&, const SkBitmap&, - const SkIRect&, + const SkRect&, const SkMatrix&, const GrTextureParams& params, GrPaint* grPaint); + void drawTiledBitmap(const SkDraw& draw, + const SkBitmap& bitmap, + const SkRect& srcRect, + const SkMatrix& m, + const GrTextureParams& params, + GrPaint* grPaint); + void drawBitmapCommon(const SkDraw&, + const SkBitmap& bitmap, + const SkRect* srcRectPtr, + const SkMatrix&, + const SkPaint&); /** * Returns non-initialized instance. |