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

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

Issue 822953003: Revert of remove unused SkAvoidXfermode (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 5 years, 11 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/effects/SkAvoidXfermode.cpp ('k') | src/ports/SkGlobalInitialization_default.cpp » ('j') | 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"
20 #include "SkBitmapSource.h" 21 #include "SkBitmapSource.h"
21 #include "SkBlurDrawLooper.h" 22 #include "SkBlurDrawLooper.h"
22 #include "SkBlurImageFilter.h" 23 #include "SkBlurImageFilter.h"
23 #include "SkBlurMaskFilter.h" 24 #include "SkBlurMaskFilter.h"
24 #include "SkColorCubeFilter.h" 25 #include "SkColorCubeFilter.h"
25 #include "SkColorFilter.h" 26 #include "SkColorFilter.h"
26 #include "SkColorFilterImageFilter.h" 27 #include "SkColorFilterImageFilter.h"
27 #include "SkColorMatrixFilter.h" 28 #include "SkColorMatrixFilter.h"
28 #include "SkColorShader.h" 29 #include "SkColorShader.h"
29 #include "SkComposeImageFilter.h" 30 #include "SkComposeImageFilter.h"
(...skipping 27 matching lines...) Expand all
57 #include "SkTableColorFilter.h" 58 #include "SkTableColorFilter.h"
58 #include "SkTestImageFilters.h" 59 #include "SkTestImageFilters.h"
59 #include "SkTileImageFilter.h" 60 #include "SkTileImageFilter.h"
60 #include "SkMatrixImageFilter.h" 61 #include "SkMatrixImageFilter.h"
61 #include "SkXfermodeImageFilter.h" 62 #include "SkXfermodeImageFilter.h"
62 63
63 class SkPrivateEffectInitializer { 64 class SkPrivateEffectInitializer {
64 public: 65 public:
65 static void Init() { 66 static void Init() {
66 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkArcToPathEffect) 67 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkArcToPathEffect)
68 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkAvoidXfermode)
67 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkBitmapProcShader) 69 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkBitmapProcShader)
68 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkBitmapSource) 70 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkBitmapSource)
69 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkBlurDrawLooper) 71 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkBlurDrawLooper)
70 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkBlurImageFilter) 72 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkBlurImageFilter)
71 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkColorCubeFilter) 73 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkColorCubeFilter)
72 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkColorMatrixFilter) 74 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkColorMatrixFilter)
73 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkColorShader) 75 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkColorShader)
74 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkComposePathEffect) 76 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkComposePathEffect)
75 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkComposeShader) 77 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkComposeShader)
76 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkCornerPathEffect) 78 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkCornerPathEffect)
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
115 SkLightingImageFilter::InitializeFlattenables(); 117 SkLightingImageFilter::InitializeFlattenables();
116 SkTableColorFilter::InitializeFlattenables(); 118 SkTableColorFilter::InitializeFlattenables();
117 SkXfermode::InitializeFlattenables(); 119 SkXfermode::InitializeFlattenables();
118 } 120 }
119 }; 121 };
120 122
121 SK_DECLARE_STATIC_ONCE(once); 123 SK_DECLARE_STATIC_ONCE(once);
122 void SkFlattenable::InitializeFlattenablesIfNeeded() { 124 void SkFlattenable::InitializeFlattenablesIfNeeded() {
123 SkOnce(&once, SkPrivateEffectInitializer::Init); 125 SkOnce(&once, SkPrivateEffectInitializer::Init);
124 } 126 }
OLDNEW
« no previous file with comments | « src/effects/SkAvoidXfermode.cpp ('k') | src/ports/SkGlobalInitialization_default.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698