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

Side by Side Diff: src/gpu/GrBufferAllocPool.h

Issue 23137022: Replace uses of GR_DEBUG by SK_DEBUG. (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: not GR_RELEASE Created 7 years, 3 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 | Annotate | Revision Log
« no previous file with comments | « src/gpu/GrBinHashKey.h ('k') | src/gpu/GrBufferAllocPool.cpp » ('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 2010 Google Inc. 3 * Copyright 2010 Google Inc.
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 10
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after
154 void releaseGpuRef(); 154 void releaseGpuRef();
155 155
156 struct BufferBlock { 156 struct BufferBlock {
157 size_t fBytesFree; 157 size_t fBytesFree;
158 GrGeometryBuffer* fBuffer; 158 GrGeometryBuffer* fBuffer;
159 }; 159 };
160 160
161 bool createBlock(size_t requestSize); 161 bool createBlock(size_t requestSize);
162 void destroyBlock(); 162 void destroyBlock();
163 void flushCpuData(GrGeometryBuffer* buffer, size_t flushSize); 163 void flushCpuData(GrGeometryBuffer* buffer, size_t flushSize);
164 #if GR_DEBUG 164 #ifdef SK_DEBUG
165 void validate(bool unusedBlockAllowed = false) const; 165 void validate(bool unusedBlockAllowed = false) const;
166 #endif 166 #endif
167 167
168 size_t fBytesInUse; 168 size_t fBytesInUse;
169 169
170 GrGpu* fGpu; 170 GrGpu* fGpu;
171 bool fGpuIsReffed; 171 bool fGpuIsReffed;
172 bool fFrequentResetHint; 172 bool fFrequentResetHint;
173 SkTDArray<GrGeometryBuffer*> fPreallocBuffers; 173 SkTDArray<GrGeometryBuffer*> fPreallocBuffers;
174 size_t fMinBlockSize; 174 size_t fMinBlockSize;
(...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after
343 * @return number of indices that fit in one of the preallocated index 343 * @return number of indices that fit in one of the preallocated index
344 * buffers. 344 * buffers.
345 */ 345 */
346 int preallocatedBufferIndices() const; 346 int preallocatedBufferIndices() const;
347 347
348 private: 348 private:
349 typedef GrBufferAllocPool INHERITED; 349 typedef GrBufferAllocPool INHERITED;
350 }; 350 };
351 351
352 #endif 352 #endif
OLDNEW
« no previous file with comments | « src/gpu/GrBinHashKey.h ('k') | src/gpu/GrBufferAllocPool.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698