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 #include "GrBufferAllocPool.h" | 10 #include "GrBufferAllocPool.h" |
11 #include "GrDrawTargetCaps.h" | 11 #include "GrCaps.h" |
12 #include "GrGpu.h" | 12 #include "GrGpu.h" |
13 #include "GrIndexBuffer.h" | 13 #include "GrIndexBuffer.h" |
14 #include "GrTypes.h" | 14 #include "GrTypes.h" |
15 #include "GrVertexBuffer.h" | 15 #include "GrVertexBuffer.h" |
16 | 16 |
17 #include "SkTraceEvent.h" | 17 #include "SkTraceEvent.h" |
18 | 18 |
19 #ifdef SK_DEBUG | 19 #ifdef SK_DEBUG |
20 #define VALIDATE validate | 20 #define VALIDATE validate |
21 #else | 21 #else |
(...skipping 390 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
412 &geomBuffer, | 412 &geomBuffer, |
413 &offset); | 413 &offset); |
414 | 414 |
415 *buffer = (const GrIndexBuffer*) geomBuffer; | 415 *buffer = (const GrIndexBuffer*) geomBuffer; |
416 SkASSERT(0 == offset % sizeof(uint16_t)); | 416 SkASSERT(0 == offset % sizeof(uint16_t)); |
417 *startIndex = static_cast<int>(offset / sizeof(uint16_t)); | 417 *startIndex = static_cast<int>(offset / sizeof(uint16_t)); |
418 return ptr; | 418 return ptr; |
419 } | 419 } |
420 | 420 |
421 | 421 |
OLD | NEW |