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 |
(...skipping 12 matching lines...) Expand all Loading... |
23 | 23 |
24 #ifdef SK_DEVELOPER | 24 #ifdef SK_DEVELOPER |
25 #define PROGRAM_CACHE_STATS | 25 #define PROGRAM_CACHE_STATS |
26 #endif | 26 #endif |
27 | 27 |
28 class GrGpuGL : public GrGpu { | 28 class GrGpuGL : public GrGpu { |
29 public: | 29 public: |
30 GrGpuGL(const GrGLContext& ctx, GrContext* context); | 30 GrGpuGL(const GrGLContext& ctx, GrContext* context); |
31 virtual ~GrGpuGL(); | 31 virtual ~GrGpuGL(); |
32 | 32 |
33 virtual void contextAbandonded() SK_OVERRIDE; | 33 virtual void contextAbandoned() SK_OVERRIDE; |
34 | 34 |
35 const GrGLContext& glContext() const { return fGLContext; } | 35 const GrGLContext& glContext() const { return fGLContext; } |
36 | 36 |
37 const GrGLInterface* glInterface() const { return fGLContext.interface(); } | 37 const GrGLInterface* glInterface() const { return fGLContext.interface(); } |
38 const GrGLContextInfo& ctxInfo() const { return fGLContext; } | 38 const GrGLContextInfo& ctxInfo() const { return fGLContext; } |
39 GrGLStandard glStandard() const { return fGLContext.standard(); } | 39 GrGLStandard glStandard() const { return fGLContext.standard(); } |
40 GrGLVersion glVersion() const { return fGLContext.version(); } | 40 GrGLVersion glVersion() const { return fGLContext.version(); } |
41 GrGLSLGeneration glslGeneration() const { return fGLContext.glslGeneration()
; } | 41 GrGLSLGeneration glslGeneration() const { return fGLContext.glslGeneration()
; } |
42 const GrGLCaps& glCaps() const { return *fGLContext.caps(); } | 42 const GrGLCaps& glCaps() const { return *fGLContext.caps(); } |
43 | 43 |
(...skipping 394 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
438 | 438 |
439 // we record what stencil format worked last time to hopefully exit early | 439 // we record what stencil format worked last time to hopefully exit early |
440 // from our loop that tries stencil formats and calls check fb status. | 440 // from our loop that tries stencil formats and calls check fb status. |
441 int fLastSuccessfulStencilFmtIdx; | 441 int fLastSuccessfulStencilFmtIdx; |
442 | 442 |
443 typedef GrGpu INHERITED; | 443 typedef GrGpu INHERITED; |
444 friend class GrGLPathRendering; // For accessing setTextureUnit. | 444 friend class GrGLPathRendering; // For accessing setTextureUnit. |
445 }; | 445 }; |
446 | 446 |
447 #endif | 447 #endif |
OLD | NEW |