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

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

Issue 368253002: Do not export SkTDArray when building Skia as a DLL (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 | « AUTHORS ('k') | 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 2006 The Android Open Source Project 3 * Copyright 2006 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 SkTDArray_DEFINED 10 #ifndef SkTDArray_DEFINED
11 #define SkTDArray_DEFINED 11 #define SkTDArray_DEFINED
12 12
13 #include "SkTypes.h" 13 #include "SkTypes.h"
14 14
15 template <typename T> class SK_API SkTDArray { 15 template <typename T> class SkTDArray {
16 public: 16 public:
17 SkTDArray() { 17 SkTDArray() {
18 fReserve = fCount = 0; 18 fReserve = fCount = 0;
19 fArray = NULL; 19 fArray = NULL;
20 #ifdef SK_DEBUG 20 #ifdef SK_DEBUG
21 fData = NULL; 21 fData = NULL;
22 #endif 22 #endif
23 } 23 }
24 SkTDArray(const T src[], int count) { 24 SkTDArray(const T src[], int count) {
25 SkASSERT(src || count == 0); 25 SkASSERT(src || count == 0);
(...skipping 354 matching lines...) Expand 10 before | Expand all | Expand 10 after
380 fReserve = count + 4; 380 fReserve = count + 4;
381 fReserve += fReserve / 4; 381 fReserve += fReserve / 4;
382 fArray = (T*)sk_realloc_throw(fArray, fReserve * sizeof(T)); 382 fArray = (T*)sk_realloc_throw(fArray, fReserve * sizeof(T));
383 #ifdef SK_DEBUG 383 #ifdef SK_DEBUG
384 fData = (ArrayT*)fArray; 384 fData = (ArrayT*)fArray;
385 #endif 385 #endif
386 } 386 }
387 }; 387 };
388 388
389 #endif 389 #endif
OLDNEW
« no previous file with comments | « AUTHORS ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698