OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2011 Google Inc. | 2 * Copyright 2011 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 GrGpuGL_DEFINED | 8 #ifndef GrGpuGL_DEFINED |
9 #define GrGpuGL_DEFINED | 9 #define GrGpuGL_DEFINED |
10 | 10 |
11 #include "GrBinHashKey.h" | 11 #include "GrBinHashKey.h" |
12 #include "GrDrawState.h" | 12 #include "GrDrawState.h" |
13 #include "GrGLContext.h" | 13 #include "GrGLContext.h" |
14 #include "GrGLIRect.h" | 14 #include "GrGLIRect.h" |
15 #include "GrGLIndexBuffer.h" | 15 #include "GrGLIndexBuffer.h" |
16 #include "GrGLProgram.h" | 16 #include "GrGLProgram.h" |
17 #include "GrGLStencilBuffer.h" | 17 #include "GrGLStencilBuffer.h" |
18 #include "GrGLTexture.h" | 18 #include "GrGLTexture.h" |
19 #include "GrGLVertexArray.h" | 19 #include "GrGLVertexArray.h" |
20 #include "GrGLVertexBuffer.h" | 20 #include "GrGLVertexBuffer.h" |
21 #include "GrGpu.h" | 21 #include "GrGpu.h" |
22 #include "GrTHashTable.h" | |
23 #include "SkTypes.h" | 22 #include "SkTypes.h" |
24 | 23 |
25 #ifdef SK_DEVELOPER | 24 #ifdef SK_DEVELOPER |
26 #define PROGRAM_CACHE_STATS | 25 #define PROGRAM_CACHE_STATS |
27 #endif | 26 #endif |
28 | 27 |
29 class GrGLNameAllocator; | 28 class GrGLNameAllocator; |
30 | 29 |
31 class GrGpuGL : public GrGpu { | 30 class GrGpuGL : public GrGpu { |
32 public: | 31 public: |
(...skipping 444 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
477 // we record what stencil format worked last time to hopefully exit early | 476 // we record what stencil format worked last time to hopefully exit early |
478 // from our loop that tries stencil formats and calls check fb status. | 477 // from our loop that tries stencil formats and calls check fb status. |
479 int fLastSuccessfulStencilFmtIdx; | 478 int fLastSuccessfulStencilFmtIdx; |
480 | 479 |
481 SkAutoTDelete<GrGLNameAllocator> fPathNameAllocator; | 480 SkAutoTDelete<GrGLNameAllocator> fPathNameAllocator; |
482 | 481 |
483 typedef GrGpu INHERITED; | 482 typedef GrGpu INHERITED; |
484 }; | 483 }; |
485 | 484 |
486 #endif | 485 #endif |
OLD | NEW |