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