| 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 "SkData.h" | 13 #include "SkData.h" |
| 14 #include "SkMatrix.h" | 14 #include "SkMatrix.h" |
| 15 #include "SkPath.h" | 15 #include "SkPath.h" |
| 16 #include "SkPoint.h" | 16 #include "SkPoint.h" |
| 17 #include "SkRRect.h" | 17 #include "SkRRect.h" |
| 18 #include "SkRect.h" | 18 #include "SkRect.h" |
| 19 #include "SkRegion.h" | 19 #include "SkRegion.h" |
| 20 #include "SkScalar.h" | 20 #include "SkScalar.h" |
| 21 #include "SkStream.h" | 21 #include "SkStream.h" |
| 22 #include "SkTemplates.h" | 22 #include "SkTemplates.h" |
| 23 #include "SkTypes.h" | 23 #include "SkTypes.h" |
| 24 | 24 |
| 25 class 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. |
| 33 */ | 33 */ |
| 34 SkWriter32(void* external = NULL, size_t externalBytes = 0) { | 34 SkWriter32(void* external = NULL, size_t externalBytes = 0) { |
| 35 this->reset(external, externalBytes); | 35 this->reset(external, externalBytes); |
| (...skipping 236 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 272 union { | 272 union { |
| 273 void* fPtrAlignment; | 273 void* fPtrAlignment; |
| 274 double fDoubleAlignment; | 274 double fDoubleAlignment; |
| 275 char fStorage[SIZE]; | 275 char fStorage[SIZE]; |
| 276 } fData; | 276 } fData; |
| 277 | 277 |
| 278 typedef SkWriter32 INHERITED; | 278 typedef SkWriter32 INHERITED; |
| 279 }; | 279 }; |
| 280 | 280 |
| 281 #endif | 281 #endif |
| OLD | NEW |