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 #include "SkFlattenableBuffers.h" | 8 #include "SkFlattenableBuffers.h" |
9 #include "SkPaint.h" | 9 #include "SkPaint.h" |
10 #include "SkTypeface.h" | 10 #include "SkTypeface.h" |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
47 this->writeByteArray(ptrStorage, sizeof(void*)); | 47 this->writeByteArray(ptrStorage, sizeof(void*)); |
48 } | 48 } |
49 | 49 |
50 void SkFlattenableWriteBuffer::writePaint(const SkPaint& paint) { | 50 void SkFlattenableWriteBuffer::writePaint(const SkPaint& paint) { |
51 paint.flatten(*this); | 51 paint.flatten(*this); |
52 } | 52 } |
53 | 53 |
54 void SkFlattenableWriteBuffer::flattenObject(SkFlattenable* obj, SkFlattenableWr
iteBuffer& buffer) { | 54 void SkFlattenableWriteBuffer::flattenObject(SkFlattenable* obj, SkFlattenableWr
iteBuffer& buffer) { |
55 obj->flatten(buffer); | 55 obj->flatten(buffer); |
56 } | 56 } |
| 57 |
OLD | NEW |