Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1651)

Side by Side Diff: src/core/SkReadBuffer.h

Issue 2396953002: Revert[8] "replace SkXfermode obj with SkBlendMode enum in paints" (Closed)
Patch Set: add tmp virtual to unroll legacy arithmodes Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/core/SkRasterPipelineBlitter.cpp ('k') | src/core/SkRecordDraw.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « src/core/SkRasterPipelineBlitter.cpp ('k') | src/core/SkRecordDraw.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698