OLD | NEW |
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 Loading... |
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 |
OLD | NEW |