Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 Loading... | |
| 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 } | |
| OLD | NEW |