| 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" |
| 22 #include "SkTypes.h" | 23 #include "SkTypes.h" |
| 23 #include "../GrTHashCache.h" | |
| 24 | 24 |
| 25 #ifdef SK_DEVELOPER | 25 #ifdef SK_DEVELOPER |
| 26 #define PROGRAM_CACHE_STATS | 26 #define PROGRAM_CACHE_STATS |
| 27 #endif | 27 #endif |
| 28 | 28 |
| 29 class GrGpuGL : public GrGpu { | 29 class GrGpuGL : public GrGpu { |
| 30 public: | 30 public: |
| 31 GrGpuGL(const GrGLContext& ctx, GrContext* context); | 31 GrGpuGL(const GrGLContext& ctx, GrContext* context); |
| 32 virtual ~GrGpuGL(); | 32 virtual ~GrGpuGL(); |
| 33 | 33 |
| (...skipping 416 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 450 ///@} | 450 ///@} |
| 451 | 451 |
| 452 // we record what stencil format worked last time to hopefully exit early | 452 // we record what stencil format worked last time to hopefully exit early |
| 453 // from our loop that tries stencil formats and calls check fb status. | 453 // from our loop that tries stencil formats and calls check fb status. |
| 454 int fLastSuccessfulStencilFmtIdx; | 454 int fLastSuccessfulStencilFmtIdx; |
| 455 | 455 |
| 456 typedef GrGpu INHERITED; | 456 typedef GrGpu INHERITED; |
| 457 }; | 457 }; |
| 458 | 458 |
| 459 #endif | 459 #endif |
| OLD | NEW |