Chromium Code Reviews| Index: third_party/WebKit/Source/platform/graphics/Image.h |
| diff --git a/third_party/WebKit/Source/platform/graphics/Image.h b/third_party/WebKit/Source/platform/graphics/Image.h |
| index 9bbd010949fd43a5af9de31f28dd684f3ebb44d5..d23b503d1dc909611ffb018d9d49ba875e1b6ff3 100644 |
| --- a/third_party/WebKit/Source/platform/graphics/Image.h |
| +++ b/third_party/WebKit/Source/platform/graphics/Image.h |
| @@ -44,6 +44,8 @@ |
| class SkBitmap; |
| class SkCanvas; |
| class SkImage; |
| +class SkMatrix; |
| +class SkPaint; |
| namespace blink { |
| @@ -150,6 +152,17 @@ public: |
| virtual void draw(SkCanvas*, const SkPaint&, const FloatRect& dstRect, const FloatRect& srcRect, RespectImageOrientationEnum, ImageClampingMode) = 0; |
| + virtual bool applyShader(SkPaint&, const SkMatrix* localMatrix); |
| + |
| + // Compute the tile which contains a given point (assuming a repeating tile grid). |
| + static FloatRect computeTileContaining(const FloatPoint&, const FloatSize& tileSize, |
|
chrishtr
2016/05/20 19:52:35
Also comment: input point and return value is in d
f(malita)
2016/05/22 14:04:07
Done.
|
| + const FloatPoint& tilePhase, const FloatSize& tileSpacing); |
| + |
| + // Compute the image subset which gets mapped onto dest, when the whole image is drawn into |
| + // tile. Assumes the tile contains dest. |
| + static FloatRect computeSubsetForTile(const FloatRect& tile, const FloatRect& dest, |
|
chrishtr
2016/05/20 19:52:35
Also comment: tile rect is in destination grid spa
f(malita)
2016/05/22 14:04:07
Done.
|
| + const FloatSize& imageSize); |
| + |
| protected: |
| Image(ImageObserver* = 0); |