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 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
61 kDropShadowMode_Version = 37, | 61 kDropShadowMode_Version = 37, |
62 kPictureImageFilterResolution_Version = 38, | 62 kPictureImageFilterResolution_Version = 38, |
63 kPictureImageFilterLevel_Version = 39, | 63 kPictureImageFilterLevel_Version = 39, |
64 kImageFilterNoUniqueID_Version = 40, | 64 kImageFilterNoUniqueID_Version = 40, |
65 kBitmapSourceFilterQuality_Version = 41, | 65 kBitmapSourceFilterQuality_Version = 41, |
66 kPictureShaderHasPictureBool_Version = 42, | 66 kPictureShaderHasPictureBool_Version = 42, |
67 kHasDrawImageOpCodes_Version = 43, | 67 kHasDrawImageOpCodes_Version = 43, |
68 kAnnotationsMovedToCanvas_Version = 44, | 68 kAnnotationsMovedToCanvas_Version = 44, |
69 kLightingShaderWritesInvNormRotation = 45, | 69 kLightingShaderWritesInvNormRotation = 45, |
70 kBlurMaskFilterWritesOccluder = 47, | 70 kBlurMaskFilterWritesOccluder = 47, |
| 71 kGradientShaderFloatColor_Version = 49, |
71 }; | 72 }; |
72 | 73 |
73 /** | 74 /** |
74 * Returns true IFF the version is older than the specified version. | 75 * Returns true IFF the version is older than the specified version. |
75 */ | 76 */ |
76 bool isVersionLT(Version targetVersion) const { | 77 bool isVersionLT(Version targetVersion) const { |
77 SkASSERT(targetVersion > 0); | 78 SkASSERT(targetVersion > 0); |
78 return fVersion > 0 && fVersion < targetVersion; | 79 return fVersion > 0 && fVersion < targetVersion; |
79 } | 80 } |
80 | 81 |
(...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
262 #ifdef DEBUG_NON_DETERMINISTIC_ASSERT | 263 #ifdef DEBUG_NON_DETERMINISTIC_ASSERT |
263 // Debugging counter to keep track of how many bitmaps we | 264 // Debugging counter to keep track of how many bitmaps we |
264 // have decoded. | 265 // have decoded. |
265 int fDecodedBitmapIndex; | 266 int fDecodedBitmapIndex; |
266 #endif // DEBUG_NON_DETERMINISTIC_ASSERT | 267 #endif // DEBUG_NON_DETERMINISTIC_ASSERT |
267 | 268 |
268 SkInflator* fInflator = nullptr; | 269 SkInflator* fInflator = nullptr; |
269 }; | 270 }; |
270 | 271 |
271 #endif // SkReadBuffer_DEFINED | 272 #endif // SkReadBuffer_DEFINED |
OLD | NEW |