guard registering mallocpixelref for chrome

companion to https://codereview.chromium.org/320873003

NOTRY=True
TBR=

Author: reed@google.com

Review URL: https://codereview.chromium.org/373903002
This commit is contained in:
reed 2014-07-07 14:59:31 -07:00 committed by Commit bot
parent 060c41a499
commit 3230517a77

View File

@ -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();