Index: src/ports/SkGlobalInitialization_chromium.cpp |
diff --git a/src/ports/SkGlobalInitialization_chromium.cpp b/src/ports/SkGlobalInitialization_chromium.cpp |
index 121b1c9cc1643b518038468ce8b363eef74e889e..a1a6f8d0db32c17c0abe8a32e4ed3cf490da6550 100644 |
--- a/src/ports/SkGlobalInitialization_chromium.cpp |
+++ b/src/ports/SkGlobalInitialization_chromium.cpp |
@@ -106,7 +106,9 @@ static void InitializeFlattenables() { |
SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkMergeImageFilter) |
SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkColorFilterImageFilter) |
SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkDownSampleImageFilter) |
+#ifdef SK_SUPPORT_LEGACY_PIXELREF_UNFLATTENABLE |
SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkMallocPixelRef) |
+#endif |
SkArithmeticMode::InitializeFlattenables(); |
SkBlurMaskFilter::InitializeFlattenables(); |