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

Unified Diff: include/core/SkImageFilter.h

Issue 23021015: Initial error handling code (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: New serialization method Created 7 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
Index: include/core/SkImageFilter.h
diff --git a/include/core/SkImageFilter.h b/include/core/SkImageFilter.h
index 3dc145ca1979a40e966c352312c576193176fb26..d74a47638e3f7d93d8d88e1e4bc81e4df1597d84 100644
--- a/include/core/SkImageFilter.h
+++ b/include/core/SkImageFilter.h
@@ -28,6 +28,8 @@ class GrTexture;
* is what will finally be drawn to the device (using the original xfermode).
*/
class SK_API SkImageFilter : public SkFlattenable {
+ typedef SkFlattenable INHERITED;
+
public:
SK_DECLARE_INST_COUNT(SkImageFilter)
@@ -140,6 +142,8 @@ public:
*/
const SkIRect& cropRect() const { return fCropRect; }
+ SK_DEFINE_FLATTENABLE_TYPE(SkImageFilter)
+
protected:
SkImageFilter(int inputCount, SkImageFilter** inputs, const SkIRect* cropRect = NULL);
@@ -167,7 +171,6 @@ protected:
bool applyCropRect(SkIRect* rect, const SkMatrix& matrix) const;
private:
- typedef SkFlattenable INHERITED;
int fInputCount;
SkImageFilter** fInputs;
SkIRect fCropRect;

Powered by Google App Engine
This is Rietveld 408576698