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

Unified Diff: Source/platform/graphics/filters/SourceGraphic.h

Issue 1338753003: Specify the source rect on the SourceGraphic (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Doh Created 5 years, 3 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
« no previous file with comments | « Source/platform/graphics/filters/Filter.h ('k') | Source/platform/graphics/filters/SourceGraphic.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/platform/graphics/filters/SourceGraphic.h
diff --git a/Source/platform/graphics/filters/SourceGraphic.h b/Source/platform/graphics/filters/SourceGraphic.h
index 4eb56d74a2b559cbe7d54599cc2763bb40e423b7..939cfb0aacfa71b761d375507cfb1e54f737c832 100644
--- a/Source/platform/graphics/filters/SourceGraphic.h
+++ b/Source/platform/graphics/filters/SourceGraphic.h
@@ -22,6 +22,7 @@
#ifndef SourceGraphic_h
#define SourceGraphic_h
+#include "platform/geometry/IntRect.h"
#include "platform/graphics/filters/FilterEffect.h"
class SkPicture;
@@ -43,11 +44,13 @@ public:
PassRefPtr<SkImageFilter> createImageFilter(SkiaImageFilterBuilder*) override;
void setPicture(PassRefPtr<const SkPicture>);
+ void setSourceRect(const IntRect&);
private:
- SourceGraphic(Filter*);
+ explicit SourceGraphic(Filter*);
RefPtr<const SkPicture> m_picture;
+ IntRect m_sourceRect;
};
} //namespace blink
« no previous file with comments | « Source/platform/graphics/filters/Filter.h ('k') | Source/platform/graphics/filters/SourceGraphic.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698