Chromium Code Reviews| Index: src/gpu/SkGpuDevice.h |
| diff --git a/src/gpu/SkGpuDevice.h b/src/gpu/SkGpuDevice.h |
| index efb674472ba37b483757edfcae2d6cbdec4bdf1e..bdb3af0cb9e665ba614321996e933c693b10e253 100644 |
| --- a/src/gpu/SkGpuDevice.h |
| +++ b/src/gpu/SkGpuDevice.h |
| @@ -179,32 +179,17 @@ private: |
| // The tileSize and clippedSrcRect will be valid only if true is returned. |
| bool shouldTileImageID(uint32_t imageID, const SkIRect& imageRect, |
| const SkMatrix& viewMatrix, |
| + const SkMatrix& srcToDstRectMatrix, |
| const GrTextureParams& params, |
| const SkRect* srcRectPtr, |
| int maxTileSize, |
| int* tileSize, |
| SkIRect* clippedSubset) const; |
| - bool shouldTileBitmap(const SkBitmap& bitmap, |
| - const SkMatrix& viewMatrix, |
| - const GrTextureParams& sampler, |
| - const SkRect* srcRectPtr, |
| - int maxTileSize, |
| - int* tileSize, |
| - SkIRect* clippedSrcRect) const; |
| // Just returns the predicate, not the out-tileSize or out-clippedSubset, as they are not |
| // needed at the moment. |
| bool shouldTileImage(const SkImage* image, const SkRect* srcRectPtr, |
| SkCanvas::SrcRectConstraint constraint, SkFilterQuality quality, |
| - const SkMatrix& viewMatrix) const; |
| - |
| - void internalDrawBitmap(const SkBitmap&, |
|
bsalomon
2016/08/17 03:11:57
This is only being called by drawTiledBitmap. As a
|
| - const SkMatrix& viewMatrix, |
| - const SkRect&, |
| - const GrTextureParams& params, |
| - const SkPaint& paint, |
| - SkCanvas::SrcRectConstraint, |
| - bool bicubic, |
| - bool needsTextureDomain); |
| + const SkMatrix& viewMatrix, const SkMatrix& srcToDstRect) const; |
| sk_sp<SkSpecialImage> filterTexture(const SkDraw&, |
| SkSpecialImage*, |
| @@ -212,8 +197,10 @@ private: |
| SkIPoint* offset, |
| const SkImageFilter* filter); |
| + // Splits bitmap into tiles of tileSize and draws them using separate textures for each tile. |
| void drawTiledBitmap(const SkBitmap& bitmap, |
| const SkMatrix& viewMatrix, |
|
robertphillips
2016/08/17 13:55:08
add param name here (since it's not obvious what i
bsalomon
2016/08/17 14:06:45
Done.
|
| + const SkMatrix&, |
| const SkRect& srcRect, |
| const SkIRect& clippedSrcRect, |
| const GrTextureParams& params, |
| @@ -222,6 +209,17 @@ private: |
| int tileSize, |
| bool bicubic); |
| + // Used by drawTiledBitmap to draw each tile. |
| + void drawBitmapTile(const SkBitmap&, |
| + const SkMatrix& viewMatrix, |
| + const SkRect& dstRect, |
| + const SkRect& srcRect, |
| + const GrTextureParams& params, |
| + const SkPaint& paint, |
| + SkCanvas::SrcRectConstraint, |
| + bool bicubic, |
| + bool needsTextureDomain); |
| + |
| void drawTextureProducer(GrTextureProducer*, |
| const SkRect* srcRect, |
| const SkRect* dstRect, |