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

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

Issue 1837913003: Add support for serializing/deserializing of SkDrawable (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Rebase Created 4 years, 8 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 | « include/core/SkFlattenable.h ('k') | src/core/SkPictureData.h » ('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 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 "SkComposeShader.h" 12 #include "SkComposeShader.h"
13 #include "SkEmptyShader.h" 13 #include "SkEmptyShader.h"
14 #include "SkFlattenable.h" 14 #include "SkFlattenable.h"
15 #include "SkImageShader.h" 15 #include "SkImageShader.h"
16 #include "SkLocalMatrixShader.h" 16 #include "SkLocalMatrixShader.h"
17 #include "SkMatrixImageFilter.h"
17 #include "SkOnce.h" 18 #include "SkOnce.h"
18 #include "SkPathEffect.h" 19 #include "SkPathEffect.h"
19 #include "SkPictureShader.h" 20 #include "SkPictureShader.h"
20 #include "SkMatrixImageFilter.h" 21 #include "SkRecordedDrawable.h"
21 #include "SkXfermode.h" 22 #include "SkXfermode.h"
22 23
23 /* 24 /*
24 * Registers all of the required effects subclasses for picture deserialization . 25 * Registers all of the required effects subclasses for picture deserialization .
25 * 26 *
26 * Optional subclasses (e.g. Blur) should be registered in the ports/ version o f this file, 27 * Optional subclasses (e.g. Blur) should be registered in the ports/ version o f this file,
27 * inside the InitEffects() method. 28 * inside the InitEffects() method.
28 */ 29 */
29 void SkFlattenable::PrivateInitializer::InitCore() { 30 void SkFlattenable::PrivateInitializer::InitCore() {
30 // Shader 31 // Shader
(...skipping 11 matching lines...) Expand all
42 43
43 // ImageFilter 44 // ImageFilter
44 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkMatrixImageFilter) 45 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkMatrixImageFilter)
45 46
46 // ColorFilter 47 // ColorFilter
47 SkColorFilter::InitializeFlattenables(); 48 SkColorFilter::InitializeFlattenables();
48 49
49 // Xfermode 50 // Xfermode
50 SkXfermode::InitializeFlattenables(); 51 SkXfermode::InitializeFlattenables();
51 52
53 // Drawable
54 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkRecordedDrawable)
55
52 // Now initialize any optional/additional effects (implemented in src/ports) 56 // Now initialize any optional/additional effects (implemented in src/ports)
53 InitEffects(); 57 InitEffects();
54 }; 58 };
55 59
56 void SkFlattenable::InitializeFlattenablesIfNeeded() { 60 void SkFlattenable::InitializeFlattenablesIfNeeded() {
57 static SkOnce once; 61 static SkOnce once;
58 once(SkFlattenable::PrivateInitializer::InitCore); 62 once(SkFlattenable::PrivateInitializer::InitCore);
59 } 63 }
OLDNEW
« no previous file with comments | « include/core/SkFlattenable.h ('k') | src/core/SkPictureData.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698