| 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 GrGLGpu_DEFINED | 8 #ifndef GrGLGpu_DEFINED | 
| 9 #define GrGLGpu_DEFINED | 9 #define GrGLGpu_DEFINED | 
| 10 | 10 | 
| (...skipping 14 matching lines...) Expand all  Loading... | 
| 25 | 25 | 
| 26 class GrPipeline; | 26 class GrPipeline; | 
| 27 class GrNonInstancedVertices; | 27 class GrNonInstancedVertices; | 
| 28 | 28 | 
| 29 #ifdef SK_DEVELOPER | 29 #ifdef SK_DEVELOPER | 
| 30 #define PROGRAM_CACHE_STATS | 30 #define PROGRAM_CACHE_STATS | 
| 31 #endif | 31 #endif | 
| 32 | 32 | 
| 33 class GrGLGpu : public GrGpu { | 33 class GrGLGpu : public GrGpu { | 
| 34 public: | 34 public: | 
| 35     static GrGpu* Create(GrBackendContext backendContext, GrContext* context); | 35     static GrGpu* Create(GrBackendContext backendContext, const GrContextOptions
     & options, | 
|  | 36                          GrContext* context); | 
| 36     ~GrGLGpu() override; | 37     ~GrGLGpu() override; | 
| 37 | 38 | 
| 38     void contextAbandoned() override; | 39     void contextAbandoned() override; | 
| 39 | 40 | 
| 40     const GrGLContext& glContext() const { return *fGLContext; } | 41     const GrGLContext& glContext() const { return *fGLContext; } | 
| 41 | 42 | 
| 42     const GrGLInterface* glInterface() const { return fGLContext->interface(); } | 43     const GrGLInterface* glInterface() const { return fGLContext->interface(); } | 
| 43     const GrGLContextInfo& ctxInfo() const { return *fGLContext; } | 44     const GrGLContextInfo& ctxInfo() const { return *fGLContext; } | 
| 44     GrGLStandard glStandard() const { return fGLContext->standard(); } | 45     GrGLStandard glStandard() const { return fGLContext->standard(); } | 
| 45     GrGLVersion glVersion() const { return fGLContext->version(); } | 46     GrGLVersion glVersion() const { return fGLContext->version(); } | 
| (...skipping 426 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 472 | 473 | 
| 473     // we record what stencil format worked last time to hopefully exit early | 474     // we record what stencil format worked last time to hopefully exit early | 
| 474     // from our loop that tries stencil formats and calls check fb status. | 475     // from our loop that tries stencil formats and calls check fb status. | 
| 475     int fLastSuccessfulStencilFmtIdx; | 476     int fLastSuccessfulStencilFmtIdx; | 
| 476 | 477 | 
| 477     typedef GrGpu INHERITED; | 478     typedef GrGpu INHERITED; | 
| 478     friend class GrGLPathRendering; // For accessing setTextureUnit. | 479     friend class GrGLPathRendering; // For accessing setTextureUnit. | 
| 479 }; | 480 }; | 
| 480 | 481 | 
| 481 #endif | 482 #endif | 
| OLD | NEW | 
|---|