OLD | NEW |
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 #ifndef SkReadBuffer_DEFINED | 8 #ifndef SkReadBuffer_DEFINED |
9 #define SkReadBuffer_DEFINED | 9 #define SkReadBuffer_DEFINED |
10 | 10 |
(...skipping 28 matching lines...) Expand all Loading... |
39 virtual ~SkReadBuffer(); | 39 virtual ~SkReadBuffer(); |
40 | 40 |
41 enum Version { | 41 enum Version { |
42 kFilterLevelIsEnum_Version = 23, | 42 kFilterLevelIsEnum_Version = 23, |
43 kGradientFlippedFlag_Version = 24, | 43 kGradientFlippedFlag_Version = 24, |
44 kDashWritesPhaseIntervals_Version = 25, | 44 kDashWritesPhaseIntervals_Version = 25, |
45 kColorShaderNoBool_Version = 26, | 45 kColorShaderNoBool_Version = 26, |
46 kNoUnitMappers_Version = 27, | 46 kNoUnitMappers_Version = 27, |
47 kNoMoreBitmapFlatten_Version = 28, | 47 kNoMoreBitmapFlatten_Version = 28, |
48 kSimplifyLocalMatrix_Version = 30, | 48 kSimplifyLocalMatrix_Version = 30, |
| 49 kImageFilterUniqueID_Version = 31, |
49 }; | 50 }; |
50 | 51 |
51 /** | 52 /** |
52 * Returns true IFF the version is older than the specified version. | 53 * Returns true IFF the version is older than the specified version. |
53 */ | 54 */ |
54 bool isVersionLT(Version targetVersion) const { | 55 bool isVersionLT(Version targetVersion) const { |
55 SkASSERT(targetVersion > 0); | 56 SkASSERT(targetVersion > 0); |
56 return fVersion > 0 && fVersion < targetVersion; | 57 return fVersion > 0 && fVersion < targetVersion; |
57 } | 58 } |
58 | 59 |
(...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
223 SkPicture::InstallPixelRefProc fBitmapDecoder; | 224 SkPicture::InstallPixelRefProc fBitmapDecoder; |
224 | 225 |
225 #ifdef DEBUG_NON_DETERMINISTIC_ASSERT | 226 #ifdef DEBUG_NON_DETERMINISTIC_ASSERT |
226 // Debugging counter to keep track of how many bitmaps we | 227 // Debugging counter to keep track of how many bitmaps we |
227 // have decoded. | 228 // have decoded. |
228 int fDecodedBitmapIndex; | 229 int fDecodedBitmapIndex; |
229 #endif // DEBUG_NON_DETERMINISTIC_ASSERT | 230 #endif // DEBUG_NON_DETERMINISTIC_ASSERT |
230 }; | 231 }; |
231 | 232 |
232 #endif // SkReadBuffer_DEFINED | 233 #endif // SkReadBuffer_DEFINED |
OLD | NEW |