Work around exasperating Google3 Android build error.
authorbenjaminwagner <benjaminwagner@google.com>
Thu, 28 Jan 2016 20:55:31 +0000 (12:55 -0800)
committerCommit bot <commit-bot@chromium.org>
Thu, 28 Jan 2016 20:55:31 +0000 (12:55 -0800)
BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1649493005

Review URL: https://codereview.chromium.org/1649493005

include/core/SkXfermode.h
src/core/SkXfermode.cpp

index 91268ab..261f580 100644 (file)
@@ -246,6 +246,9 @@ private:
         kModeCount = kLastMode + 1
     };
 
+    // TODO(benjaminwagner): This is crazy, but it fixes the Google3 Android build. :-(
+    virtual void doNothing() const;
+
     typedef SkFlattenable INHERITED;
 };
 
index 79de322..c3a40dc 100644 (file)
@@ -1071,3 +1071,5 @@ bool SkXfermode::IsOpaque(const SkXfermode* xfer, SrcColorOpacity opacityType) {
 SK_DEFINE_FLATTENABLE_REGISTRAR_GROUP_START(SkXfermode)
     SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkProcCoeffXfermode)
 SK_DEFINE_FLATTENABLE_REGISTRAR_GROUP_END
+
+void SkXfermode::doNothing() const {}