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

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

Issue 1211583003: add drawImageNine (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: uniformly check for null-pixelref Created 5 years, 6 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
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 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 kPictureImageFilterLevel_Version = 39,
58 kImageFilterNoUniqueID_Version = 40, 58 kImageFilterNoUniqueID_Version = 40,
59 kBitmapSourceFilterQuality_Version = 41, 59 kBitmapSourceFilterQuality_Version = 41,
60 kPictureShaderHasPictureBool_Version = 42, 60 kPictureShaderHasPictureBool_Version = 42,
61 kHasDrawImageOpCodes_Version = 43, 61 kHasDrawImageOpCodes_Version = 43,
62 kImageNineAndAtlasOpCodes_Version = 44,
62 }; 63 };
63 64
64 /** 65 /**
65 * Returns true IFF the version is older than the specified version. 66 * Returns true IFF the version is older than the specified version.
66 */ 67 */
67 bool isVersionLT(Version targetVersion) const { 68 bool isVersionLT(Version targetVersion) const {
68 SkASSERT(targetVersion > 0); 69 SkASSERT(targetVersion > 0);
69 return fVersion > 0 && fVersion < targetVersion; 70 return fVersion > 0 && fVersion < targetVersion;
70 } 71 }
71 72
(...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after
237 SkPicture::InstallPixelRefProc fBitmapDecoder; 238 SkPicture::InstallPixelRefProc fBitmapDecoder;
238 239
239 #ifdef DEBUG_NON_DETERMINISTIC_ASSERT 240 #ifdef DEBUG_NON_DETERMINISTIC_ASSERT
240 // Debugging counter to keep track of how many bitmaps we 241 // Debugging counter to keep track of how many bitmaps we
241 // have decoded. 242 // have decoded.
242 int fDecodedBitmapIndex; 243 int fDecodedBitmapIndex;
243 #endif // DEBUG_NON_DETERMINISTIC_ASSERT 244 #endif // DEBUG_NON_DETERMINISTIC_ASSERT
244 }; 245 };
245 246
246 #endif // SkReadBuffer_DEFINED 247 #endif // SkReadBuffer_DEFINED
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698