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

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

Issue 283273002: remove unused (by clients) SkUnitMapper (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: mark affected gms to be ignored (and then rebaselined) 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
OLDNEW
1 1
2 /* 2 /*
3 * Copyright 2012 Google Inc. 3 * Copyright 2012 Google Inc.
4 * 4 *
5 * Use of this source code is governed by a BSD-style license that can be 5 * Use of this source code is governed by a BSD-style license that can be
6 * found in the LICENSE file. 6 * found in the LICENSE file.
7 */ 7 */
8 8
9 #include "SkBitmap.h" 9 #include "SkBitmap.h"
10 #include "SkErrorInternals.h" 10 #include "SkErrorInternals.h"
(...skipping 317 matching lines...) Expand 10 before | Expand all | Expand 10 after
328 if (sizeRecorded != sizeRead) { 328 if (sizeRecorded != sizeRead) {
329 // we could try to fix up the offset... 329 // we could try to fix up the offset...
330 sk_throw(); 330 sk_throw();
331 } 331 }
332 } else { 332 } else {
333 // we must skip the remaining data 333 // we must skip the remaining data
334 fReader.skip(sizeRecorded); 334 fReader.skip(sizeRecorded);
335 } 335 }
336 return obj; 336 return obj;
337 } 337 }
338
339 void SkReadBuffer::skipFlattenable() {
340 if (fFactoryCount > 0) {
scroggo 2014/05/15 17:18:13 This structure does appear to be the same as readF
reed1 2014/05/16 12:26:56 Done.
341 if (0 == fReader.readU32()) {
342 return;
343 }
344 } else if (fFactoryTDArray) {
345 if (0 == fReader.readU32()) {
346 return;
347 }
348 } else {
349 if (NULL == this->readFunctionPtr()) {
350 return;
351 }
352 }
353 uint32_t sizeRecorded = fReader.readU32();
354 fReader.skip(sizeRecorded);
355 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698