| 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 | 8 |
| 9 | 9 |
| 10 #ifndef GrGpuGL_DEFINED | 10 #ifndef GrGpuGL_DEFINED |
| 11 #define GrGpuGL_DEFINED | 11 #define GrGpuGL_DEFINED |
| 12 | 12 |
| 13 | 13 |
| 14 #include "GrBinHashKey.h" | 14 #include "GrBinHashKey.h" |
| 15 #include "GrDrawState.h" | 15 #include "GrDrawState.h" |
| 16 #include "GrGpu.h" | 16 #include "GrGpu.h" |
| 17 #include "GrGLContext.h" | 17 #include "GrGLContext.h" |
| 18 #include "GrGLIndexBuffer.h" | 18 #include "GrGLIndexBuffer.h" |
| 19 #include "GrGLIRect.h" | 19 #include "GrGLIRect.h" |
| 20 #include "GrGLProgram.h" | 20 #include "GrGLProgram.h" |
| 21 #include "GrGLStencilBuffer.h" | 21 #include "GrGLStencilBuffer.h" |
| 22 #include "GrGLTexture.h" | 22 #include "GrGLTexture.h" |
| 23 #include "GrGLVertexArray.h" | 23 #include "GrGLVertexArray.h" |
| 24 #include "GrGLVertexBuffer.h" | 24 #include "GrGLVertexBuffer.h" |
| 25 #include "../GrTHashCache.h" | 25 #include "../GrTHashCache.h" |
| 26 | 26 |
| 27 #ifdef SK_DEBUG | 27 #ifdef SK_DEVELOPER |
| 28 #define PROGRAM_CACHE_STATS | 28 #define PROGRAM_CACHE_STATS |
| 29 #endif | 29 #endif |
| 30 | 30 |
| 31 class GrGpuGL : public GrGpu { | 31 class GrGpuGL : public GrGpu { |
| 32 public: | 32 public: |
| 33 GrGpuGL(const GrGLContext& ctx, GrContext* context); | 33 GrGpuGL(const GrGLContext& ctx, GrContext* context); |
| 34 virtual ~GrGpuGL(); | 34 virtual ~GrGpuGL(); |
| 35 | 35 |
| 36 const GrGLInterface* glInterface() const { return fGLContext.interface(); } | 36 const GrGLInterface* glInterface() const { return fGLContext.interface(); } |
| 37 GrGLBinding glBinding() const { return fGLContext.info().binding(); } | 37 GrGLBinding glBinding() const { return fGLContext.info().binding(); } |
| (...skipping 392 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 430 // we record what stencil format worked last time to hopefully exit early | 430 // we record what stencil format worked last time to hopefully exit early |
| 431 // from our loop that tries stencil formats and calls check fb status. | 431 // from our loop that tries stencil formats and calls check fb status. |
| 432 int fLastSuccessfulStencilFmtIdx; | 432 int fLastSuccessfulStencilFmtIdx; |
| 433 | 433 |
| 434 bool fPrintedCaps; | 434 bool fPrintedCaps; |
| 435 | 435 |
| 436 typedef GrGpu INHERITED; | 436 typedef GrGpu INHERITED; |
| 437 }; | 437 }; |
| 438 | 438 |
| 439 #endif | 439 #endif |
| OLD | NEW |