| OLD | NEW |
| 1 | |
| 2 /* | 1 /* |
| 3 * Copyright 2006 The Android Open Source Project | 2 * Copyright 2006 The Android Open Source Project |
| 4 * | 3 * |
| 5 * 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 |
| 6 * found in the LICENSE file. | 5 * found in the LICENSE file. |
| 7 */ | 6 */ |
| 8 | 7 |
| 9 | 8 |
| 10 #include "SkStream.h" | 9 #include "SkStream.h" |
| 11 #include "SkStreamPriv.h" | 10 #include "SkStreamPriv.h" |
| (...skipping 894 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 906 while (true) { | 905 while (true) { |
| 907 count = input->read(scratch, sizeof(scratch)); | 906 count = input->read(scratch, sizeof(scratch)); |
| 908 if (0 == count) { | 907 if (0 == count) { |
| 909 return true; | 908 return true; |
| 910 } | 909 } |
| 911 if (!out->write(scratch, count)) { | 910 if (!out->write(scratch, count)) { |
| 912 return false; | 911 return false; |
| 913 } | 912 } |
| 914 } | 913 } |
| 915 } | 914 } |
| OLD | NEW |