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

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

Issue 1911403004: Make SkDrawable an SkFlattenable (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: 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/SkDrawable.h ('k') | tests/FlattenDrawableTest.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 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,
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 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
123 124
124 private: 125 private:
125 static void InitializeFlattenablesIfNeeded(); 126 static void InitializeFlattenablesIfNeeded();
126 127
127 friend class SkGraphics; 128 friend class SkGraphics;
128 129
129 typedef SkRefCnt INHERITED; 130 typedef SkRefCnt INHERITED;
130 }; 131 };
131 132
132 #endif 133 #endif
OLDNEW
« no previous file with comments | « include/core/SkDrawable.h ('k') | tests/FlattenDrawableTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698