Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1387)

Side by Side Diff: include/core/SkWriter32.h

Issue 356053002: Add SK_API to SkWriter32 (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698