| OLD | NEW |
| 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 Loading... |
| 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 #if 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 Loading... |
| 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 |
| OLD | NEW |