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

Side by Side Diff: include/core/SkFlattenable.h

Issue 1837913003: Add support for serializing/deserializing of SkDrawable (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Add ability to specify custom flattenable factories on SkReadBuffer 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
OLDNEW
1 /* 1 /*
2 * Copyright 2006 The Android Open Source Project 2 * Copyright 2006 The Android Open Source Project
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 #ifndef SkFlattenable_DEFINED 8 #ifndef SkFlattenable_DEFINED
9 #define SkFlattenable_DEFINED 9 #define SkFlattenable_DEFINED
10 10
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
64 /** \class SkFlattenable 64 /** \class SkFlattenable
65 65
66 SkFlattenable is the base class for objects that need to be flattened 66 SkFlattenable is the base class for objects that need to be flattened
67 into a data stream for either transport or as part of the key to the 67 into a data stream for either transport or as part of the key to the
68 font cache. 68 font cache.
69 */ 69 */
70 class SK_API SkFlattenable : public SkRefCnt { 70 class SK_API SkFlattenable : public SkRefCnt {
71 public: 71 public:
72 enum Type { 72 enum Type {
73 kSkColorFilter_Type, 73 kSkColorFilter_Type,
74 kSkDrawable_Type,
reed1 2016/03/31 18:42:05 do we ever serialize this enum, in which case renu
msarett 2016/04/01 14:11:44 No we don't serialize the enums. They don't do mu
74 kSkDrawLooper_Type, 75 kSkDrawLooper_Type,
75 kSkImageFilter_Type, 76 kSkImageFilter_Type,
76 kSkMaskFilter_Type, 77 kSkMaskFilter_Type,
77 kSkPathEffect_Type, 78 kSkPathEffect_Type,
78 kSkPixelRef_Type, 79 kSkPixelRef_Type,
79 kSkRasterizer_Type, 80 kSkRasterizer_Type,
80 kSkShader_Type, 81 kSkShader_Type,
81 kSkUnused_Type, // used to be SkUnitMapper 82 kSkUnused_Type, // used to be SkUnitMapper
82 kSkXfermode_Type, 83 kSkXfermode_Type,
83 }; 84 };
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
117 118
118 private: 119 private:
119 static void InitializeFlattenablesIfNeeded(); 120 static void InitializeFlattenablesIfNeeded();
120 121
121 friend class SkGraphics; 122 friend class SkGraphics;
122 123
123 typedef SkRefCnt INHERITED; 124 typedef SkRefCnt INHERITED;
124 }; 125 };
125 126
126 #endif 127 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698