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

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

Issue 155513012: [WIP] Add Context to SkDrawLooper. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Use SkSmallAllocator Created 6 years, 9 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
OLDNEW
1 /* 1 /*
2 * Copyright 2014 Google, Inc 2 * Copyright 2014 Google, Inc
3 * 3 *
4 * Use of this source code is governed by a BSD-style license that can be 4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file. 5 * found in the LICENSE file.
6 */ 6 */
7 7
8 #ifndef SkSmallAllocator_DEFINED 8 #ifndef SkSmallAllocator_DEFINED
9 #define SkSmallAllocator_DEFINED 9 #define SkSmallAllocator_DEFINED
10 10
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after
139 139
140 // Number of bytes used so far. 140 // Number of bytes used so far.
141 size_t fStorageUsed; 141 size_t fStorageUsed;
142 // Pad the storage size to be 4-byte aligned. 142 // Pad the storage size to be 4-byte aligned.
143 uint32_t fStorage[SkAlign4(kTotalBytes) >> 2]; 143 uint32_t fStorage[SkAlign4(kTotalBytes) >> 2];
144 uint32_t fNumObjects; 144 uint32_t fNumObjects;
145 Rec fRecs[kMaxObjects]; 145 Rec fRecs[kMaxObjects];
146 }; 146 };
147 147
148 #endif // SkSmallAllocator_DEFINED 148 #endif // SkSmallAllocator_DEFINED
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698