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

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

Issue 1270533003: Minor cleanup of SkLightingShader (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: update Created 5 years, 4 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 "SkBitmapProcShader.h" 8 #include "SkBitmapProcShader.h"
9 #include "SkPathEffect.h" 9 #include "SkPathEffect.h"
10 #include "SkXfermode.h" 10 #include "SkXfermode.h"
(...skipping 19 matching lines...) Expand all
30 #include "SkDisplacementMapEffect.h" 30 #include "SkDisplacementMapEffect.h"
31 #include "SkDropShadowImageFilter.h" 31 #include "SkDropShadowImageFilter.h"
32 #include "SkEmptyShader.h" 32 #include "SkEmptyShader.h"
33 #include "SkEmbossMaskFilter.h" 33 #include "SkEmbossMaskFilter.h"
34 #include "SkFlattenable.h" 34 #include "SkFlattenable.h"
35 #include "SkGradientShader.h" 35 #include "SkGradientShader.h"
36 #include "SkLayerDrawLooper.h" 36 #include "SkLayerDrawLooper.h"
37 #include "SkLayerRasterizer.h" 37 #include "SkLayerRasterizer.h"
38 #include "SkLerpXfermode.h" 38 #include "SkLerpXfermode.h"
39 #include "SkLightingImageFilter.h" 39 #include "SkLightingImageFilter.h"
40 #include "../effects/SkLightingShader.h"
40 #include "SkLocalMatrixShader.h" 41 #include "SkLocalMatrixShader.h"
41 #include "SkLumaColorFilter.h" 42 #include "SkLumaColorFilter.h"
42 #include "SkMagnifierImageFilter.h" 43 #include "SkMagnifierImageFilter.h"
43 #include "SkMatrixConvolutionImageFilter.h" 44 #include "SkMatrixConvolutionImageFilter.h"
44 #include "SkMergeImageFilter.h" 45 #include "SkMergeImageFilter.h"
45 #include "SkModeColorFilter.h" 46 #include "SkModeColorFilter.h"
46 #include "SkMorphologyImageFilter.h" 47 #include "SkMorphologyImageFilter.h"
47 #include "SkOffsetImageFilter.h" 48 #include "SkOffsetImageFilter.h"
48 #include "SkOnce.h" 49 #include "SkOnce.h"
49 #include "SkPerlinNoiseShader.h" 50 #include "SkPerlinNoiseShader.h"
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
104 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkComposeImageFilter) 105 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkComposeImageFilter)
105 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkMergeImageFilter) 106 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkMergeImageFilter)
106 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkColorFilterImageFilter) 107 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkColorFilterImageFilter)
107 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkDownSampleImageFilter) 108 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkDownSampleImageFilter)
108 109
109 SkArithmeticMode::InitializeFlattenables(); 110 SkArithmeticMode::InitializeFlattenables();
110 SkBlurMaskFilter::InitializeFlattenables(); 111 SkBlurMaskFilter::InitializeFlattenables();
111 SkColorFilter::InitializeFlattenables(); 112 SkColorFilter::InitializeFlattenables();
112 SkGradientShader::InitializeFlattenables(); 113 SkGradientShader::InitializeFlattenables();
113 SkLightingImageFilter::InitializeFlattenables(); 114 SkLightingImageFilter::InitializeFlattenables();
115 SkLightingShader::InitializeFlattenables();
114 SkTableColorFilter::InitializeFlattenables(); 116 SkTableColorFilter::InitializeFlattenables();
115 SkXfermode::InitializeFlattenables(); 117 SkXfermode::InitializeFlattenables();
116 } 118 }
117 }; 119 };
118 120
119 SK_DECLARE_STATIC_ONCE(once); 121 SK_DECLARE_STATIC_ONCE(once);
120 void SkFlattenable::InitializeFlattenablesIfNeeded() { 122 void SkFlattenable::InitializeFlattenablesIfNeeded() {
121 SkOnce(&once, SkPrivateEffectInitializer::Init); 123 SkOnce(&once, SkPrivateEffectInitializer::Init);
122 } 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