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

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

Issue 25453004: Luminance-to-alpha color filter (SkLumaColorFilter). (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: Added test & more docs. Created 7 years, 2 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 | Annotate | Revision Log
« no previous file with comments | « src/ports/SkGlobalInitialization_chromium.cpp ('k') | tests/ColorFilterTest.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"
(...skipping 28 matching lines...) Expand all
39 #include "SkDropShadowImageFilter.h" 39 #include "SkDropShadowImageFilter.h"
40 #include "SkEmptyShader.h" 40 #include "SkEmptyShader.h"
41 #include "SkEmbossMaskFilter.h" 41 #include "SkEmbossMaskFilter.h"
42 #include "SkFlattenable.h" 42 #include "SkFlattenable.h"
43 #include "SkGradientShader.h" 43 #include "SkGradientShader.h"
44 #include "SkImages.h" 44 #include "SkImages.h"
45 #include "SkLayerDrawLooper.h" 45 #include "SkLayerDrawLooper.h"
46 #include "SkLayerRasterizer.h" 46 #include "SkLayerRasterizer.h"
47 #include "SkLerpXfermode.h" 47 #include "SkLerpXfermode.h"
48 #include "SkLightingImageFilter.h" 48 #include "SkLightingImageFilter.h"
49 #include "SkLumaColorFilter.h"
49 #include "SkLumaXfermode.h" 50 #include "SkLumaXfermode.h"
50 #include "SkMagnifierImageFilter.h" 51 #include "SkMagnifierImageFilter.h"
51 #include "SkMatrixConvolutionImageFilter.h" 52 #include "SkMatrixConvolutionImageFilter.h"
52 #include "SkMergeImageFilter.h" 53 #include "SkMergeImageFilter.h"
53 #include "SkMorphologyImageFilter.h" 54 #include "SkMorphologyImageFilter.h"
54 #include "SkOffsetImageFilter.h" 55 #include "SkOffsetImageFilter.h"
55 #include "SkPerlinNoiseShader.h" 56 #include "SkPerlinNoiseShader.h"
56 #include "SkPixelXorXfermode.h" 57 #include "SkPixelXorXfermode.h"
57 #include "SkRectShaderImageFilter.h" 58 #include "SkRectShaderImageFilter.h"
58 #include "SkStippleMaskFilter.h" 59 #include "SkStippleMaskFilter.h"
(...skipping 23 matching lines...) Expand all
82 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkDilateImageFilter) 83 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkDilateImageFilter)
83 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkDiscretePathEffect) 84 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkDiscretePathEffect)
84 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkDisplacementMapEffect) 85 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkDisplacementMapEffect)
85 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkDropShadowImageFilter) 86 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkDropShadowImageFilter)
86 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkEmbossMaskFilter) 87 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkEmbossMaskFilter)
87 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkEmptyShader) 88 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkEmptyShader)
88 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkErodeImageFilter) 89 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkErodeImageFilter)
89 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkLayerDrawLooper) 90 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkLayerDrawLooper)
90 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkLayerRasterizer) 91 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkLayerRasterizer)
91 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkLerpXfermode) 92 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkLerpXfermode)
93 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkLumaColorFilter)
92 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkPath1DPathEffect) 94 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkPath1DPathEffect)
93 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(Sk2DPathEffect) 95 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(Sk2DPathEffect)
94 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkLine2DPathEffect) 96 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkLine2DPathEffect)
95 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkPath2DPathEffect) 97 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkPath2DPathEffect)
96 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkPerlinNoiseShader) 98 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkPerlinNoiseShader)
97 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkPixelXorXfermode) 99 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkPixelXorXfermode)
98 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkRectShaderImageFilter) 100 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkRectShaderImageFilter)
99 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkStippleMaskFilter) 101 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkStippleMaskFilter)
100 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkSumPathEffect) 102 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkSumPathEffect)
101 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkTileImageFilter) 103 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkTileImageFilter)
(...skipping 11 matching lines...) Expand all
113 SkArithmeticMode::InitializeFlattenables(); 115 SkArithmeticMode::InitializeFlattenables();
114 SkBlurMaskFilter::InitializeFlattenables(); 116 SkBlurMaskFilter::InitializeFlattenables();
115 SkColorFilter::InitializeFlattenables(); 117 SkColorFilter::InitializeFlattenables();
116 SkGradientShader::InitializeFlattenables(); 118 SkGradientShader::InitializeFlattenables();
117 SkImages::InitializeFlattenables(); 119 SkImages::InitializeFlattenables();
118 SkLightingImageFilter::InitializeFlattenables(); 120 SkLightingImageFilter::InitializeFlattenables();
119 SkLumaMaskXfermode::InitializeFlattenables(); 121 SkLumaMaskXfermode::InitializeFlattenables();
120 SkTableColorFilter::InitializeFlattenables(); 122 SkTableColorFilter::InitializeFlattenables();
121 SkXfermode::InitializeFlattenables(); 123 SkXfermode::InitializeFlattenables();
122 } 124 }
OLDNEW
« no previous file with comments | « src/ports/SkGlobalInitialization_chromium.cpp ('k') | tests/ColorFilterTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698