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

Side by Side Diff: include/core/SkPicture.h

Issue 2379383002: Propagate validation errors (Closed)
Patch Set: fix spilling 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 | « no previous file | src/core/SkPicture.cpp » ('j') | src/core/SkPicturePlayback.cpp » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright 2007 The Android Open Source Project 2 * Copyright 2007 The Android Open Source Project
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 SkPicture_DEFINED 8 #ifndef SkPicture_DEFINED
9 #define SkPicture_DEFINED 9 #define SkPicture_DEFINED
10 10
(...skipping 229 matching lines...) Expand 10 before | Expand all | Expand 10 after
240 240
241 static_assert(MIN_PICTURE_VERSION <= 45, 241 static_assert(MIN_PICTURE_VERSION <= 45,
242 "Remove decoding of old SkTypeface::Style from SkFontDescripto r.cpp."); 242 "Remove decoding of old SkTypeface::Style from SkFontDescripto r.cpp.");
243 243
244 static_assert(MIN_PICTURE_VERSION <= 48, 244 static_assert(MIN_PICTURE_VERSION <= 48,
245 "Remove legacy gradient deserialization code from SkGradientSh ader.cpp."); 245 "Remove legacy gradient deserialization code from SkGradientSh ader.cpp.");
246 246
247 static bool IsValidPictInfo(const SkPictInfo& info); 247 static bool IsValidPictInfo(const SkPictInfo& info);
248 static sk_sp<SkPicture> Forwardport(const SkPictInfo&, 248 static sk_sp<SkPicture> Forwardport(const SkPictInfo&,
249 const SkPictureData*, 249 const SkPictureData*,
250 const SkReadBuffer* buffer); 250 SkReadBuffer* buffer);
251 251
252 SkPictInfo createHeader() const; 252 SkPictInfo createHeader() const;
253 SkPictureData* backport() const; 253 SkPictureData* backport() const;
254 254
255 mutable uint32_t fUniqueID; 255 mutable uint32_t fUniqueID;
256 }; 256 };
257 257
258 #endif 258 #endif
OLDNEW
« no previous file with comments | « no previous file | src/core/SkPicture.cpp » ('j') | src/core/SkPicturePlayback.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698