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

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

Issue 1331533002: [poc] curve-filter Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Fix CanvasRenderingContext2D::createPattern crash for #40 Created 4 years, 11 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/ImageBufferSurface.h
diff --git a/third_party/WebKit/Source/platform/graphics/ImageBufferSurface.h b/third_party/WebKit/Source/platform/graphics/ImageBufferSurface.h
index aa51c7a40ddd9f1d3c442fbccd6d56599a70e6c0..8c92c059208b84213184c646c110a95aaa3f2121 100644
--- a/third_party/WebKit/Source/platform/graphics/ImageBufferSurface.h
+++ b/third_party/WebKit/Source/platform/graphics/ImageBufferSurface.h
@@ -42,6 +42,7 @@
class SkBitmap;
class SkCanvas;
+class SkColorFilter;
class SkImage;
struct SkImageInfo;
class SkPicture;
@@ -73,7 +74,7 @@ public:
virtual void setImageBuffer(ImageBuffer*) { }
virtual PassRefPtr<SkPicture> getPicture();
virtual void finalizeFrame(const FloatRect &dirtyRect) { }
- virtual void draw(GraphicsContext&, const FloatRect& destRect, const FloatRect& srcRect, SkXfermode::Mode);
+ virtual void draw(GraphicsContext&, const FloatRect& destRect, const FloatRect& srcRect, SkXfermode::Mode, SkColorFilter* transform);
virtual void setHasExpensiveOp() { }
virtual Platform3DObject getBackingTextureHandleForOverwrite() { return 0; }
virtual void flush(); // Execute all deferred rendering immediately
@@ -86,6 +87,8 @@ public:
OpacityMode opacityMode() const { return m_opacityMode; }
const IntSize& size() const { return m_size; }
+ int width() const { return m_size.width(); }
+ int height() const { return m_size.height(); }
void notifyIsValidChanged(bool isValid) const;
protected:

Powered by Google App Engine
This is Rietveld 408576698