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

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

Issue 1556553002: Implement an SkPaint-based image filter (Closed) Base URL: https://chromium.googlesource.com/skia.git@master
Patch Set: More randomness for paths and for rasterizer's paint Created 4 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
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 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 #include "SkLightingShader.h" 47 #include "SkLightingShader.h"
48 #include "SkLocalMatrixShader.h" 48 #include "SkLocalMatrixShader.h"
49 #include "SkLumaColorFilter.h" 49 #include "SkLumaColorFilter.h"
50 #include "SkMagnifierImageFilter.h" 50 #include "SkMagnifierImageFilter.h"
51 #include "SkMatrixConvolutionImageFilter.h" 51 #include "SkMatrixConvolutionImageFilter.h"
52 #include "SkMergeImageFilter.h" 52 #include "SkMergeImageFilter.h"
53 #include "SkModeColorFilter.h" 53 #include "SkModeColorFilter.h"
54 #include "SkMorphologyImageFilter.h" 54 #include "SkMorphologyImageFilter.h"
55 #include "SkOffsetImageFilter.h" 55 #include "SkOffsetImageFilter.h"
56 #include "SkOnce.h" 56 #include "SkOnce.h"
57 #include "SkPaintImageFilter.h"
57 #include "SkPerlinNoiseShader.h" 58 #include "SkPerlinNoiseShader.h"
58 #include "SkPictureImageFilter.h" 59 #include "SkPictureImageFilter.h"
59 #include "SkPictureShader.h" 60 #include "SkPictureShader.h"
60 #include "SkPixelXorXfermode.h" 61 #include "SkPixelXorXfermode.h"
61 #include "SkRectShaderImageFilter.h" 62 #include "SkRectShaderImageFilter.h"
62 #include "SkTableColorFilter.h" 63 #include "SkTableColorFilter.h"
63 #include "SkTestImageFilters.h" 64 #include "SkTestImageFilters.h"
64 #include "SkTileImageFilter.h" 65 #include "SkTileImageFilter.h"
65 #include "SkMatrixImageFilter.h" 66 #include "SkMatrixImageFilter.h"
66 #include "SkXfermodeImageFilter.h" 67 #include "SkXfermodeImageFilter.h"
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
107 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkImageShader) 108 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkImageShader)
108 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkImageSource) 109 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkImageSource)
109 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkLayerDrawLooper) 110 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkLayerDrawLooper)
110 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkLayerRasterizer) 111 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkLayerRasterizer)
111 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkLerpXfermode) 112 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkLerpXfermode)
112 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkLocalMatrixShader) 113 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkLocalMatrixShader)
113 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkLumaColorFilter) 114 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkLumaColorFilter)
114 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkPath1DPathEffect) 115 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkPath1DPathEffect)
115 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkLine2DPathEffect) 116 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkLine2DPathEffect)
116 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkModeColorFilter) 117 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkModeColorFilter)
118 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkPaintImageFilter)
117 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkPath2DPathEffect) 119 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkPath2DPathEffect)
118 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkPerlinNoiseShader) 120 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkPerlinNoiseShader)
119 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkPictureImageFilter) 121 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkPictureImageFilter)
120 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkPictureShader) 122 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkPictureShader)
121 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkPixelXorXfermode) 123 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkPixelXorXfermode)
122 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkRectShaderImageFilter) 124 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkRectShaderImageFilter)
123 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkSumPathEffect) 125 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkSumPathEffect)
124 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkTileImageFilter) 126 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkTileImageFilter)
125 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkMatrixImageFilter) 127 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkMatrixImageFilter)
126 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkXfermodeImageFilter) 128 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkXfermodeImageFilter)
(...skipping 15 matching lines...) Expand all
142 SkLightingShader::InitializeFlattenables(); 144 SkLightingShader::InitializeFlattenables();
143 SkTableColorFilter::InitializeFlattenables(); 145 SkTableColorFilter::InitializeFlattenables();
144 SkXfermode::InitializeFlattenables(); 146 SkXfermode::InitializeFlattenables();
145 } 147 }
146 }; 148 };
147 149
148 SK_DECLARE_STATIC_ONCE(once); 150 SK_DECLARE_STATIC_ONCE(once);
149 void SkFlattenable::InitializeFlattenablesIfNeeded() { 151 void SkFlattenable::InitializeFlattenablesIfNeeded() {
150 SkOnce(&once, SkPrivateEffectInitializer::Init); 152 SkOnce(&once, SkPrivateEffectInitializer::Init);
151 } 153 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698