| 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 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 kImageFilterUniqueID_Version = 31, |
| 50 kRemoveAndroidPaintOpts_Version = 32, | 50 kRemoveAndroidPaintOpts_Version = 32, |
| 51 kFlattenCreateProc_Version = 33, | 51 kFlattenCreateProc_Version = 33, |
| 52 kRemoveColorTableAlpha_Version = 36, | 52 kRemoveColorTableAlpha_Version = 36, |
| 53 kDropShadowMode_Version = 37, | 53 kDropShadowMode_Version = 37, |
| 54 kPictureImageFilterResolution_Version = 38, |
| 54 }; | 55 }; |
| 55 | 56 |
| 56 /** | 57 /** |
| 57 * Returns true IFF the version is older than the specified version. | 58 * Returns true IFF the version is older than the specified version. |
| 58 */ | 59 */ |
| 59 bool isVersionLT(Version targetVersion) const { | 60 bool isVersionLT(Version targetVersion) const { |
| 60 SkASSERT(targetVersion > 0); | 61 SkASSERT(targetVersion > 0); |
| 61 return fVersion > 0 && fVersion < targetVersion; | 62 return fVersion > 0 && fVersion < targetVersion; |
| 62 } | 63 } |
| 63 | 64 |
| (...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 229 SkPicture::InstallPixelRefProc fBitmapDecoder; | 230 SkPicture::InstallPixelRefProc fBitmapDecoder; |
| 230 | 231 |
| 231 #ifdef DEBUG_NON_DETERMINISTIC_ASSERT | 232 #ifdef DEBUG_NON_DETERMINISTIC_ASSERT |
| 232 // Debugging counter to keep track of how many bitmaps we | 233 // Debugging counter to keep track of how many bitmaps we |
| 233 // have decoded. | 234 // have decoded. |
| 234 int fDecodedBitmapIndex; | 235 int fDecodedBitmapIndex; |
| 235 #endif // DEBUG_NON_DETERMINISTIC_ASSERT | 236 #endif // DEBUG_NON_DETERMINISTIC_ASSERT |
| 236 }; | 237 }; |
| 237 | 238 |
| 238 #endif // SkReadBuffer_DEFINED | 239 #endif // SkReadBuffer_DEFINED |
| OLD | NEW |