| 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 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 kGradientShaderFloatColor_Version = 49, |
| 72 kXfermodeToBlendMode_Version = 50, |
| 72 }; | 73 }; |
| 73 | 74 |
| 74 /** | 75 /** |
| 75 * Returns true IFF the version is older than the specified version. | 76 * Returns true IFF the version is older than the specified version. |
| 76 */ | 77 */ |
| 77 bool isVersionLT(Version targetVersion) const { | 78 bool isVersionLT(Version targetVersion) const { |
| 78 SkASSERT(targetVersion > 0); | 79 SkASSERT(targetVersion > 0); |
| 79 return fVersion > 0 && fVersion < targetVersion; | 80 return fVersion > 0 && fVersion < targetVersion; |
| 80 } | 81 } |
| 81 | 82 |
| (...skipping 183 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 265 #ifdef DEBUG_NON_DETERMINISTIC_ASSERT | 266 #ifdef DEBUG_NON_DETERMINISTIC_ASSERT |
| 266 // Debugging counter to keep track of how many bitmaps we | 267 // Debugging counter to keep track of how many bitmaps we |
| 267 // have decoded. | 268 // have decoded. |
| 268 int fDecodedBitmapIndex; | 269 int fDecodedBitmapIndex; |
| 269 #endif // DEBUG_NON_DETERMINISTIC_ASSERT | 270 #endif // DEBUG_NON_DETERMINISTIC_ASSERT |
| 270 | 271 |
| 271 SkInflator* fInflator = nullptr; | 272 SkInflator* fInflator = nullptr; |
| 272 }; | 273 }; |
| 273 | 274 |
| 274 #endif // SkReadBuffer_DEFINED | 275 #endif // SkReadBuffer_DEFINED |
| OLD | NEW |