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

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

Issue 1272293004: Move SkTemplates.h to private. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: It's a struct! Created 5 years, 4 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 | « include/core/SkTemplates.h ('k') | include/gpu/GrResourceKey.h » ('j') | 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 "../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
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
OLDNEW
« no previous file with comments | « include/core/SkTemplates.h ('k') | include/gpu/GrResourceKey.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698