| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2012 Google Inc. | 2 * Copyright 2012 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 "SkImage.h" | 10 #include "SkImage.h" |
| (...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 83 } | 83 } |
| 84 | 84 |
| 85 bool SkReadBuffer::readBool() { | 85 bool SkReadBuffer::readBool() { |
| 86 return fReader.readBool(); | 86 return fReader.readBool(); |
| 87 } | 87 } |
| 88 | 88 |
| 89 SkColor SkReadBuffer::readColor() { | 89 SkColor SkReadBuffer::readColor() { |
| 90 return fReader.readInt(); | 90 return fReader.readInt(); |
| 91 } | 91 } |
| 92 | 92 |
| 93 SkFixed SkReadBuffer::readFixed() { | |
| 94 return fReader.readS32(); | |
| 95 } | |
| 96 | |
| 97 int32_t SkReadBuffer::readInt() { | 93 int32_t SkReadBuffer::readInt() { |
| 98 return fReader.readInt(); | 94 return fReader.readInt(); |
| 99 } | 95 } |
| 100 | 96 |
| 101 SkScalar SkReadBuffer::readScalar() { | 97 SkScalar SkReadBuffer::readScalar() { |
| 102 return fReader.readScalar(); | 98 return fReader.readScalar(); |
| 103 } | 99 } |
| 104 | 100 |
| 105 uint32_t SkReadBuffer::readUInt() { | 101 uint32_t SkReadBuffer::readUInt() { |
| 106 return fReader.readU32(); | 102 return fReader.readU32(); |
| (...skipping 277 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 384 return; | 380 return; |
| 385 } | 381 } |
| 386 } else { | 382 } else { |
| 387 if (nullptr == this->readFunctionPtr()) { | 383 if (nullptr == this->readFunctionPtr()) { |
| 388 return; | 384 return; |
| 389 } | 385 } |
| 390 } | 386 } |
| 391 uint32_t sizeRecorded = fReader.readU32(); | 387 uint32_t sizeRecorded = fReader.readU32(); |
| 392 fReader.skip(sizeRecorded); | 388 fReader.skip(sizeRecorded); |
| 393 } | 389 } |
| OLD | NEW |