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