OLD | NEW |
1 | 1 |
2 /* | 2 /* |
3 * Copyright 2008 The Android Open Source Project | 3 * Copyright 2008 The Android Open Source Project |
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 | 9 |
10 #ifndef SkWriter32_DEFINED | 10 #ifndef SkWriter32_DEFINED |
11 #define SkWriter32_DEFINED | 11 #define SkWriter32_DEFINED |
12 | 12 |
| 13 #include "../private/SkTemplates.h" |
13 #include "SkData.h" | 14 #include "SkData.h" |
14 #include "SkMatrix.h" | 15 #include "SkMatrix.h" |
15 #include "SkPath.h" | 16 #include "SkPath.h" |
16 #include "SkPoint.h" | 17 #include "SkPoint.h" |
17 #include "SkRRect.h" | 18 #include "SkRRect.h" |
18 #include "SkRect.h" | 19 #include "SkRect.h" |
19 #include "SkRegion.h" | 20 #include "SkRegion.h" |
20 #include "SkScalar.h" | 21 #include "SkScalar.h" |
21 #include "SkStream.h" | 22 #include "SkStream.h" |
22 #include "SkTemplates.h" | |
23 #include "SkTypes.h" | 23 #include "SkTypes.h" |
24 | 24 |
25 class SK_API SkWriter32 : SkNoncopyable { | 25 class SK_API SkWriter32 : SkNoncopyable { |
26 public: | 26 public: |
27 /** | 27 /** |
28 * The caller can specify an initial block of storage, which the caller man
ages. | 28 * The caller can specify an initial block of storage, which the caller man
ages. |
29 * | 29 * |
30 * SkWriter32 will try to back reserve and write calls with this external s
torage until the | 30 * SkWriter32 will try to back reserve and write calls with this external s
torage until the |
31 * first time an allocation doesn't fit. From then it will use dynamically
allocated storage. | 31 * first time an allocation doesn't fit. From then it will use dynamically
allocated storage. |
32 * This used to be optional behavior, but pipe now relies on it. | 32 * This used to be optional behavior, but pipe now relies on it. |
(...skipping 228 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
261 union { | 261 union { |
262 void* fPtrAlignment; | 262 void* fPtrAlignment; |
263 double fDoubleAlignment; | 263 double fDoubleAlignment; |
264 char fStorage[SIZE]; | 264 char fStorage[SIZE]; |
265 } fData; | 265 } fData; |
266 | 266 |
267 typedef SkWriter32 INHERITED; | 267 typedef SkWriter32 INHERITED; |
268 }; | 268 }; |
269 | 269 |
270 #endif | 270 #endif |
OLD | NEW |