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 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
54 */ | 54 */ |
55 kRemoveColorTableAlpha_Version = 36, | 55 kRemoveColorTableAlpha_Version = 36, |
56 kDropShadowMode_Version = 37, | 56 kDropShadowMode_Version = 37, |
57 kPictureImageFilterResolution_Version = 38, | 57 kPictureImageFilterResolution_Version = 38, |
58 kPictureImageFilterLevel_Version = 39, | 58 kPictureImageFilterLevel_Version = 39, |
59 kImageFilterNoUniqueID_Version = 40, | 59 kImageFilterNoUniqueID_Version = 40, |
60 kBitmapSourceFilterQuality_Version = 41, | 60 kBitmapSourceFilterQuality_Version = 41, |
61 kPictureShaderHasPictureBool_Version = 42, | 61 kPictureShaderHasPictureBool_Version = 42, |
62 kHasDrawImageOpCodes_Version = 43, | 62 kHasDrawImageOpCodes_Version = 43, |
63 kAnnotationsMovedToCanvas_Version = 44, | 63 kAnnotationsMovedToCanvas_Version = 44, |
| 64 kLightingShaderWritesInvNormRotation = 45, |
64 }; | 65 }; |
65 | 66 |
66 /** | 67 /** |
67 * Returns true IFF the version is older than the specified version. | 68 * Returns true IFF the version is older than the specified version. |
68 */ | 69 */ |
69 bool isVersionLT(Version targetVersion) const { | 70 bool isVersionLT(Version targetVersion) const { |
70 SkASSERT(targetVersion > 0); | 71 SkASSERT(targetVersion > 0); |
71 return fVersion > 0 && fVersion < targetVersion; | 72 return fVersion > 0 && fVersion < targetVersion; |
72 } | 73 } |
73 | 74 |
(...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
228 SkPicture::InstallPixelRefProc fBitmapDecoder; | 229 SkPicture::InstallPixelRefProc fBitmapDecoder; |
229 | 230 |
230 #ifdef DEBUG_NON_DETERMINISTIC_ASSERT | 231 #ifdef DEBUG_NON_DETERMINISTIC_ASSERT |
231 // Debugging counter to keep track of how many bitmaps we | 232 // Debugging counter to keep track of how many bitmaps we |
232 // have decoded. | 233 // have decoded. |
233 int fDecodedBitmapIndex; | 234 int fDecodedBitmapIndex; |
234 #endif // DEBUG_NON_DETERMINISTIC_ASSERT | 235 #endif // DEBUG_NON_DETERMINISTIC_ASSERT |
235 }; | 236 }; |
236 | 237 |
237 #endif // SkReadBuffer_DEFINED | 238 #endif // SkReadBuffer_DEFINED |
OLD | NEW |