Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(17)

Unified Diff: third_party/WebKit/Source/platform/graphics/Image.h

Issue 1949253004: Rounded background image fast path (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: review Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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..4bdadfc46066287e76fefa14a14cec0ee9fccb10 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,8 @@ public:
virtual void draw(SkCanvas*, const SkPaint&, const FloatRect& dstRect, const FloatRect& srcRect, RespectImageOrientationEnum, ImageClampingMode) = 0;
+ virtual bool applyShader(SkPaint&, const SkMatrix* localMatrix);
+
protected:
Image(ImageObserver* = 0);

Powered by Google App Engine
This is Rietveld 408576698