blob: 5a2119e5dd0e9a9411265ddf9371c92a13233999 [file] [log] [blame]
caryclark@google.comd26147a2011-12-15 14:16:43 +00001/*
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
19void SkFlattenable::InitializeFlattenables() {
djsollen@google.coma2ca41e2012-03-23 19:00:34 +000020
21 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkBitmapProcShader)
22 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkBlurImageFilter)
23 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkCornerPathEffect)
24 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkDashPathEffect)
25 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkLayerDrawLooper)
26
27 SkBlurMaskFilter::InitializeFlattenables();
28 SkColorFilter::InitializeFlattenables();
29 SkGradientShader::InitializeFlattenables();
30 SkXfermode::InitializeFlattenables();
caryclark@google.comd26147a2011-12-15 14:16:43 +000031}
32
33void SkPixelRef::InitializeFlattenables() {
34 SkMallocPixelRef::Init();
35}