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

Unified Diff: gm/imagefiltersbase.cpp

Issue 23021015: Initial error handling code (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: Fixing comments Created 7 years, 2 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 | « no previous file | gyp/core.gypi » ('j') | include/effects/SkArithmeticMode.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gm/imagefiltersbase.cpp
diff --git a/gm/imagefiltersbase.cpp b/gm/imagefiltersbase.cpp
index ca45eafe9349dec8dfd05878dcdecaa0aa7af066..30225d8c7cf92243287ba81e0025133b96ca6081 100644
--- a/gm/imagefiltersbase.cpp
+++ b/gm/imagefiltersbase.cpp
@@ -20,7 +20,7 @@ class FailImageFilter : public SkImageFilter {
public:
FailImageFilter() : INHERITED(0) {}
- SK_DECLARE_PUBLIC_FLATTENABLE_DESERIALIZATION_PROCS(FailImageFilter)
+ SK_DEFINE_FLATTENABLE_DESERIALIZATION_PROCS(FailImageFilter)
protected:
virtual bool onFilterImage(Proxy*, const SkBitmap& src, const SkMatrix&,
SkBitmap* result, SkIPoint* offset) {
@@ -35,13 +35,14 @@ private:
// register the filter with the flattenable registry
static SkFlattenable::Registrar gFailImageFilterReg("FailImageFilter",
- FailImageFilter::CreateProc);
+ FailImageFilter::CreateProc,
+ FailImageFilter::IsA);
class IdentityImageFilter : public SkImageFilter {
public:
IdentityImageFilter() : INHERITED(0) {}
- SK_DECLARE_PUBLIC_FLATTENABLE_DESERIALIZATION_PROCS(IdentityImageFilter)
+ SK_DEFINE_FLATTENABLE_DESERIALIZATION_PROCS(IdentityImageFilter)
protected:
virtual bool onFilterImage(Proxy*, const SkBitmap& src, const SkMatrix&,
SkBitmap* result, SkIPoint* offset) {
@@ -57,7 +58,8 @@ private:
// register the filter with the flattenable registry
static SkFlattenable::Registrar gIdentityImageFilterReg("IdentityImageFilter",
- IdentityImageFilter::CreateProc);
+ IdentityImageFilter::CreateProc,
+ IdentityImageFilter::IsA);
///////////////////////////////////////////////////////////////////////////////
« no previous file with comments | « no previous file | gyp/core.gypi » ('j') | include/effects/SkArithmeticMode.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698