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

Unified Diff: skia/ext/pixel_ref_utils_unittest.cc

Issue 817653003: Update from https://crrev.com/309717 (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years 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 | « skia/ext/bitmap_platform_device_cairo.h ('k') | skia/ext/skia_utils_base.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: skia/ext/pixel_ref_utils_unittest.cc
diff --git a/skia/ext/pixel_ref_utils_unittest.cc b/skia/ext/pixel_ref_utils_unittest.cc
index 08e5d3e0184b645d3efba12ca36b585981c1ddd5..414a3ce76b2306cf728efcc13a3b0dcaff578f55 100644
--- a/skia/ext/pixel_ref_utils_unittest.cc
+++ b/skia/ext/pixel_ref_utils_unittest.cc
@@ -47,7 +47,15 @@ class TestDiscardableShader : public SkShader {
void flatten(SkWriteBuffer&) const override {}
- SK_DECLARE_PUBLIC_FLATTENABLE_DESERIALIZATION_PROCS(TestDiscardableShader);
+ // Manual expansion of SK_DECLARE_PUBLIC_FLATTENABLE_DESERIALIZATION_PROCS to
+ // satisfy Chrome's style checker, since Skia isn't ready to make the C++11
+ // leap yet.
+ private:
+ static SkFlattenable* CreateProc(SkReadBuffer&);
+ friend class SkPrivateEffectInitializer;
+
+ public:
+ Factory getFactory() const override { return CreateProc; }
private:
SkBitmap bitmap_;
« no previous file with comments | « skia/ext/bitmap_platform_device_cairo.h ('k') | skia/ext/skia_utils_base.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698