Home | History | Annotate | Download | only in ports
      1 /*
      2  * Copyright 2011 Google Inc.
      3  *
      4  * Use of this source code is governed by a BSD-style license that can be
      5  * found in the LICENSE file.
      6  */
      7 
      8 #include "SkBitmapProcShader.h"
      9 #include "SkBlurImageFilter.h"
     10 #include "SkBlurMaskFilter.h"
     11 #include "SkColorFilter.h"
     12 #include "SkCornerPathEffect.h"
     13 #include "SkDashPathEffect.h"
     14 #include "SkGradientShader.h"
     15 #include "SkLayerDrawLooper.h"
     16 #include "SkMallocPixelRef.h"
     17 #include "SkXfermode.h"
     18 #include "SkMagnifierImageFilter.h"
     19 
     20 void SkFlattenable::InitializeFlattenables() {
     21 
     22     SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkBitmapProcShader)
     23     SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkBlurImageFilter)
     24     SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkCornerPathEffect)
     25     SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkDashPathEffect)
     26     SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkLayerDrawLooper)
     27     SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkMallocPixelRef)
     28     SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkMagnifierImageFilter)
     29 
     30     SkBlurMaskFilter::InitializeFlattenables();
     31     SkColorFilter::InitializeFlattenables();
     32     SkGradientShader::InitializeFlattenables();
     33     SkXfermode::InitializeFlattenables();
     34 }
     35