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

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

Issue 2370063002: Gradients are serialized (and can be constructed) as SkColor4f + SkColorSpace (Closed)
Patch Set: Widen storage for flags. Shift used bits to be contiguous. Document layout. 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 | « include/effects/SkGradientShader.h ('k') | src/effects/gradients/SkGradientShader.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 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 kDropShadowMode_Version = 37, 61 kDropShadowMode_Version = 37,
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 }; 72 };
72 73
73 /** 74 /**
74 * Returns true IFF the version is older than the specified version. 75 * Returns true IFF the version is older than the specified version.
75 */ 76 */
76 bool isVersionLT(Version targetVersion) const { 77 bool isVersionLT(Version targetVersion) const {
77 SkASSERT(targetVersion > 0); 78 SkASSERT(targetVersion > 0);
78 return fVersion > 0 && fVersion < targetVersion; 79 return fVersion > 0 && fVersion < targetVersion;
79 } 80 }
80 81
(...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after
262 #ifdef DEBUG_NON_DETERMINISTIC_ASSERT 263 #ifdef DEBUG_NON_DETERMINISTIC_ASSERT
263 // Debugging counter to keep track of how many bitmaps we 264 // Debugging counter to keep track of how many bitmaps we
264 // have decoded. 265 // have decoded.
265 int fDecodedBitmapIndex; 266 int fDecodedBitmapIndex;
266 #endif // DEBUG_NON_DETERMINISTIC_ASSERT 267 #endif // DEBUG_NON_DETERMINISTIC_ASSERT
267 268
268 SkInflator* fInflator = nullptr; 269 SkInflator* fInflator = nullptr;
269 }; 270 };
270 271
271 #endif // SkReadBuffer_DEFINED 272 #endif // SkReadBuffer_DEFINED
OLDNEW
« no previous file with comments | « include/effects/SkGradientShader.h ('k') | src/effects/gradients/SkGradientShader.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698