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

Unified Diff: include/core/SkImageFilter.h

Issue 395603002: Simplify flattening to just write enough to call the factory (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 6 years, 5 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 cd34ba3f91bd55664c05ce46a6e268003e22ba8f..5e297a80de98404f2b093b9ab705b8e72d34992a 100644
--- a/include/core/SkImageFilter.h
+++ b/include/core/SkImageFilter.h
@@ -207,7 +207,7 @@ protected:
bool unflatten(SkReadBuffer&, int expectedInputs = -1);
- CropRect cropRect() const { return fCropRect; }
+ const CropRect& cropRect() const { return fCropRect; }
int inputCount() const { return fInputs.count(); }
SkImageFilter** inputs() const { return fInputs.get(); }
@@ -238,7 +238,7 @@ protected:
*/
explicit SkImageFilter(int inputCount, SkReadBuffer& rb);
- virtual void flatten(SkWriteBuffer& wb) const SK_OVERRIDE;
+ void flattenCommon(SkWriteBuffer&) const;
Stephen White 2014/07/17 21:29:00 Now that we have a flattenCommon(), would it make
/**
* This is the virtual which should be overridden by the derived class

Powered by Google App Engine
This is Rietveld 408576698