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

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

Issue 136863006: Implement a resize image filter. This is needed for the "filterRes" feature in SVG filter effects, … (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: Add registration to fix cross-process pipe tests. Created 6 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 | Annotate | Revision Log
« no previous file with comments | « src/effects/SkResizeImageFilter.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"
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 #include "SkLumaColorFilter.h" 45 #include "SkLumaColorFilter.h"
46 #include "SkMagnifierImageFilter.h" 46 #include "SkMagnifierImageFilter.h"
47 #include "SkMatrixConvolutionImageFilter.h" 47 #include "SkMatrixConvolutionImageFilter.h"
48 #include "SkMergeImageFilter.h" 48 #include "SkMergeImageFilter.h"
49 #include "SkMorphologyImageFilter.h" 49 #include "SkMorphologyImageFilter.h"
50 #include "SkOffsetImageFilter.h" 50 #include "SkOffsetImageFilter.h"
51 #include "SkOnce.h" 51 #include "SkOnce.h"
52 #include "SkPerlinNoiseShader.h" 52 #include "SkPerlinNoiseShader.h"
53 #include "SkPixelXorXfermode.h" 53 #include "SkPixelXorXfermode.h"
54 #include "SkRectShaderImageFilter.h" 54 #include "SkRectShaderImageFilter.h"
55 #include "SkResizeImageFilter.h"
55 #include "SkStippleMaskFilter.h" 56 #include "SkStippleMaskFilter.h"
56 #include "SkTableColorFilter.h" 57 #include "SkTableColorFilter.h"
57 #include "SkTestImageFilters.h" 58 #include "SkTestImageFilters.h"
58 #include "SkTileImageFilter.h" 59 #include "SkTileImageFilter.h"
59 #include "SkXfermodeImageFilter.h" 60 #include "SkXfermodeImageFilter.h"
60 61
61 static void InitializeFlattenables(int*) { 62 static void InitializeFlattenables(int*) {
62 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkAvoidXfermode) 63 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkAvoidXfermode)
63 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkBicubicImageFilter) 64 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkBicubicImageFilter)
64 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkBitmapProcShader) 65 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkBitmapProcShader)
(...skipping 17 matching lines...) Expand all
82 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkLayerRasterizer) 83 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkLayerRasterizer)
83 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkLerpXfermode) 84 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkLerpXfermode)
84 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkLumaColorFilter) 85 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkLumaColorFilter)
85 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkPath1DPathEffect) 86 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkPath1DPathEffect)
86 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(Sk2DPathEffect) 87 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(Sk2DPathEffect)
87 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkLine2DPathEffect) 88 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkLine2DPathEffect)
88 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkPath2DPathEffect) 89 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkPath2DPathEffect)
89 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkPerlinNoiseShader) 90 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkPerlinNoiseShader)
90 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkPixelXorXfermode) 91 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkPixelXorXfermode)
91 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkRectShaderImageFilter) 92 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkRectShaderImageFilter)
93 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkResizeImageFilter)
92 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkStippleMaskFilter) 94 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkStippleMaskFilter)
93 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkSumPathEffect) 95 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkSumPathEffect)
94 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkTileImageFilter) 96 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkTileImageFilter)
95 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkXfermodeImageFilter) 97 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkXfermodeImageFilter)
96 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkMagnifierImageFilter) 98 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkMagnifierImageFilter)
97 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkMatrixConvolutionImageFilter) 99 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkMatrixConvolutionImageFilter)
98 100
99 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkOffsetImageFilter) 101 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkOffsetImageFilter)
100 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkComposeImageFilter) 102 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkComposeImageFilter)
101 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkMergeImageFilter) 103 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkMergeImageFilter)
102 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkColorFilterImageFilter) 104 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkColorFilterImageFilter)
103 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkDownSampleImageFilter) 105 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkDownSampleImageFilter)
104 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkMallocPixelRef) 106 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkMallocPixelRef)
105 107
106 SkArithmeticMode::InitializeFlattenables(); 108 SkArithmeticMode::InitializeFlattenables();
107 SkBlurMaskFilter::InitializeFlattenables(); 109 SkBlurMaskFilter::InitializeFlattenables();
108 SkColorFilter::InitializeFlattenables(); 110 SkColorFilter::InitializeFlattenables();
109 SkGradientShader::InitializeFlattenables(); 111 SkGradientShader::InitializeFlattenables();
110 SkImages::InitializeFlattenables(); 112 SkImages::InitializeFlattenables();
111 SkLightingImageFilter::InitializeFlattenables(); 113 SkLightingImageFilter::InitializeFlattenables();
112 SkTableColorFilter::InitializeFlattenables(); 114 SkTableColorFilter::InitializeFlattenables();
113 SkXfermode::InitializeFlattenables(); 115 SkXfermode::InitializeFlattenables();
114 } 116 }
115 117
116 void SkFlattenable::InitializeFlattenablesIfNeeded() { 118 void SkFlattenable::InitializeFlattenablesIfNeeded() {
117 int dummy; 119 int dummy;
118 SK_DECLARE_STATIC_ONCE(once); 120 SK_DECLARE_STATIC_ONCE(once);
119 SkOnce(&once, InitializeFlattenables, &dummy); 121 SkOnce(&once, InitializeFlattenables, &dummy);
120 } 122 }
OLDNEW
« no previous file with comments | « src/effects/SkResizeImageFilter.cpp ('k') | src/ports/SkGlobalInitialization_default.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698