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