diff options
author | 2013-10-24 17:52:07 +0000 | |
---|---|---|
committer | 2013-10-24 17:52:07 +0000 | |
commit | af562b437e43a99f5371585ba50643b1d88f09e0 (patch) | |
tree | 897a659d5f33727b19467bd92661bc41cd32b091 /include | |
parent | a34b1f8e0bff03c3706ea3d9bdfeba94b6f8eb8b (diff) |
Tile large bitmaps that are clipped.
R=robertphillips@google.com
Review URL: https://codereview.chromium.org/31033002
git-svn-id: http://skia.googlecode.com/svn/trunk@11951 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'include')
-rw-r--r-- | include/gpu/SkGpuDevice.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/include/gpu/SkGpuDevice.h b/include/gpu/SkGpuDevice.h index debfd37170..81e03244f3 100644 --- a/include/gpu/SkGpuDevice.h +++ b/include/gpu/SkGpuDevice.h @@ -188,7 +188,9 @@ private: */ bool shouldTileBitmap(const SkBitmap& bitmap, const GrTextureParams& sampler, - const SkRect* srcRectPtr) const; + const SkRect* srcRectPtr, + int maxTileSize, + int* tileSize) const; void internalDrawBitmap(const SkBitmap&, const SkRect&, const GrTextureParams& params, @@ -198,7 +200,8 @@ private: const SkRect& srcRect, const GrTextureParams& params, const SkPaint& paint, - SkCanvas::DrawBitmapRectFlags flags); + SkCanvas::DrawBitmapRectFlags flags, + int tileSize); /** * Returns non-initialized instance. |