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

Side by Side Diff: src/core/SkGlobalInitialization_core.cpp

Issue 2085653003: Enable flattening and unflattening of SkColorSpace (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 4 years, 6 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 2016 Google Inc. 2 * Copyright 2016 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 "SkColorFilter.h" 9 #include "SkColorFilter.h"
10 #include "SkColorFilterShader.h" 10 #include "SkColorFilterShader.h"
11 #include "SkColorShader.h" 11 #include "SkColorShader.h"
12 #include "SkColorSpace.h"
12 #include "SkComposeShader.h" 13 #include "SkComposeShader.h"
13 #include "SkEmptyShader.h" 14 #include "SkEmptyShader.h"
14 #include "SkFlattenable.h" 15 #include "SkFlattenable.h"
15 #include "SkImageShader.h" 16 #include "SkImageShader.h"
16 #include "SkLocalMatrixShader.h" 17 #include "SkLocalMatrixShader.h"
17 #include "SkMatrixImageFilter.h" 18 #include "SkMatrixImageFilter.h"
18 #include "SkOnce.h" 19 #include "SkOnce.h"
19 #include "SkPathEffect.h" 20 #include "SkPathEffect.h"
20 #include "SkPictureShader.h" 21 #include "SkPictureShader.h"
21 #include "SkRecordedDrawable.h" 22 #include "SkRecordedDrawable.h"
(...skipping 25 matching lines...) Expand all
47 48
48 // ColorFilter 49 // ColorFilter
49 SkColorFilter::InitializeFlattenables(); 50 SkColorFilter::InitializeFlattenables();
50 51
51 // Xfermode 52 // Xfermode
52 SkXfermode::InitializeFlattenables(); 53 SkXfermode::InitializeFlattenables();
53 54
54 // Drawable 55 // Drawable
55 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkRecordedDrawable) 56 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkRecordedDrawable)
56 57
58 // ColorSpace
59 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkColorSpace)
60
57 // Now initialize any optional/additional effects (implemented in src/ports) 61 // Now initialize any optional/additional effects (implemented in src/ports)
58 InitEffects(); 62 InitEffects();
59 }; 63 };
60 64
61 void SkFlattenable::InitializeFlattenablesIfNeeded() { 65 void SkFlattenable::InitializeFlattenablesIfNeeded() {
62 static SkOnce once; 66 static SkOnce once;
63 once(SkFlattenable::PrivateInitializer::InitCore); 67 once(SkFlattenable::PrivateInitializer::InitCore);
64 } 68 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698