Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(377)

Side by Side Diff: src/ports/SkGlobalInitialization_default.cpp

Issue 890893003: Reland "remove unused SkAvoidXfermode" (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/ports/SkGlobalInitialization_chromium.cpp ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright 2011 Google Inc. 2 * Copyright 2011 Google Inc.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license that can be 4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file. 5 * found in the LICENSE file.
6 */ 6 */
7 7
8 #include "SkTypes.h" 8 #include "SkTypes.h"
9 9
10 #include "SkBitmapProcShader.h" 10 #include "SkBitmapProcShader.h"
11 #include "SkMallocPixelRef.h" 11 #include "SkMallocPixelRef.h"
12 #include "SkPathEffect.h" 12 #include "SkPathEffect.h"
13 #include "SkPixelRef.h" 13 #include "SkPixelRef.h"
14 #include "SkXfermode.h" 14 #include "SkXfermode.h"
15 15
16 #include "Sk1DPathEffect.h" 16 #include "Sk1DPathEffect.h"
17 #include "Sk2DPathEffect.h" 17 #include "Sk2DPathEffect.h"
18 #include "SkArithmeticMode.h" 18 #include "SkArithmeticMode.h"
19 #include "SkArcToPathEffect.h" 19 #include "SkArcToPathEffect.h"
20 #include "SkAvoidXfermode.h"
21 #include "SkBitmapSource.h" 20 #include "SkBitmapSource.h"
22 #include "SkBlurDrawLooper.h" 21 #include "SkBlurDrawLooper.h"
23 #include "SkBlurImageFilter.h" 22 #include "SkBlurImageFilter.h"
24 #include "SkBlurMaskFilter.h" 23 #include "SkBlurMaskFilter.h"
25 #include "SkColorCubeFilter.h" 24 #include "SkColorCubeFilter.h"
26 #include "SkColorFilter.h" 25 #include "SkColorFilter.h"
27 #include "SkColorFilterImageFilter.h" 26 #include "SkColorFilterImageFilter.h"
28 #include "SkColorMatrixFilter.h" 27 #include "SkColorMatrixFilter.h"
29 #include "SkColorShader.h" 28 #include "SkColorShader.h"
30 #include "SkComposeImageFilter.h" 29 #include "SkComposeImageFilter.h"
(...skipping 27 matching lines...) Expand all
58 #include "SkTableColorFilter.h" 57 #include "SkTableColorFilter.h"
59 #include "SkTestImageFilters.h" 58 #include "SkTestImageFilters.h"
60 #include "SkTileImageFilter.h" 59 #include "SkTileImageFilter.h"
61 #include "SkMatrixImageFilter.h" 60 #include "SkMatrixImageFilter.h"
62 #include "SkXfermodeImageFilter.h" 61 #include "SkXfermodeImageFilter.h"
63 62
64 class SkPrivateEffectInitializer { 63 class SkPrivateEffectInitializer {
65 public: 64 public:
66 static void Init() { 65 static void Init() {
67 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkArcToPathEffect) 66 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkArcToPathEffect)
68 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkAvoidXfermode)
69 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkBitmapProcShader) 67 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkBitmapProcShader)
70 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkBitmapSource) 68 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkBitmapSource)
71 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkBlurDrawLooper) 69 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkBlurDrawLooper)
72 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkBlurImageFilter) 70 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkBlurImageFilter)
73 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkColorCubeFilter) 71 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkColorCubeFilter)
74 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkColorMatrixFilter) 72 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkColorMatrixFilter)
75 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkColorShader) 73 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkColorShader)
76 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkComposePathEffect) 74 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkComposePathEffect)
77 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkComposeShader) 75 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkComposeShader)
78 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkCornerPathEffect) 76 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkCornerPathEffect)
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
117 SkLightingImageFilter::InitializeFlattenables(); 115 SkLightingImageFilter::InitializeFlattenables();
118 SkTableColorFilter::InitializeFlattenables(); 116 SkTableColorFilter::InitializeFlattenables();
119 SkXfermode::InitializeFlattenables(); 117 SkXfermode::InitializeFlattenables();
120 } 118 }
121 }; 119 };
122 120
123 SK_DECLARE_STATIC_ONCE(once); 121 SK_DECLARE_STATIC_ONCE(once);
124 void SkFlattenable::InitializeFlattenablesIfNeeded() { 122 void SkFlattenable::InitializeFlattenablesIfNeeded() {
125 SkOnce(&once, SkPrivateEffectInitializer::Init); 123 SkOnce(&once, SkPrivateEffectInitializer::Init);
126 } 124 }
OLDNEW
« no previous file with comments | « src/ports/SkGlobalInitialization_chromium.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698