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

Side by Side Diff: src/core/SkValidatingReadBuffer.cpp

Issue 283273002: remove unused (by clients) SkUnitMapper (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: fix legacy call Created 6 years, 7 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 | Annotate | Revision Log
« no previous file with comments | « src/core/SkValidatingReadBuffer.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 2013 Google Inc. 2 * Copyright 2013 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 #include "SkBitmap.h" 8 #include "SkBitmap.h"
9 #include "SkErrorInternals.h" 9 #include "SkErrorInternals.h"
10 #include "SkValidatingReadBuffer.h" 10 #include "SkValidatingReadBuffer.h"
(...skipping 255 matching lines...) Expand 10 before | Expand all | Expand 10 after
266 delete obj; 266 delete obj;
267 obj = NULL; 267 obj = NULL;
268 } 268 }
269 } else { 269 } else {
270 // we must skip the remaining data 270 // we must skip the remaining data
271 this->skip(sizeRecorded); 271 this->skip(sizeRecorded);
272 SkASSERT(false); 272 SkASSERT(false);
273 } 273 }
274 return obj; 274 return obj;
275 } 275 }
276
277 void SkValidatingReadBuffer::skipFlattenable() {
278 SkString name;
279 this->readString(&name);
280 if (fError) {
281 return;
282 }
283 uint32_t sizeRecorded = this->readUInt();
284 this->skip(sizeRecorded);
285 }
286
287
OLDNEW
« no previous file with comments | « src/core/SkValidatingReadBuffer.h ('k') | src/effects/gradients/SkGradientShader.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698