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 20 matching lines...) Expand all Loading... |
31 #ifdef SK_DEVELOPER | 31 #ifdef SK_DEVELOPER |
32 #define PROGRAM_CACHE_STATS | 32 #define PROGRAM_CACHE_STATS |
33 #endif | 33 #endif |
34 | 34 |
35 class GrGLGpu : public GrGpu { | 35 class GrGLGpu : public GrGpu { |
36 public: | 36 public: |
37 static GrGpu* Create(GrBackendContext backendContext, const GrContextOptions
& options, | 37 static GrGpu* Create(GrBackendContext backendContext, const GrContextOptions
& options, |
38 GrContext* context); | 38 GrContext* context); |
39 ~GrGLGpu() override; | 39 ~GrGLGpu() override; |
40 | 40 |
41 void contextAbandoned() override; | 41 void disconnect(DisconnectType) override; |
42 | 42 |
43 const GrGLContext& glContext() const { return *fGLContext; } | 43 const GrGLContext& glContext() const { return *fGLContext; } |
44 | 44 |
45 const GrGLInterface* glInterface() const { return fGLContext->interface(); } | 45 const GrGLInterface* glInterface() const { return fGLContext->interface(); } |
46 const GrGLContextInfo& ctxInfo() const { return *fGLContext; } | 46 const GrGLContextInfo& ctxInfo() const { return *fGLContext; } |
47 GrGLStandard glStandard() const { return fGLContext->standard(); } | 47 GrGLStandard glStandard() const { return fGLContext->standard(); } |
48 GrGLVersion glVersion() const { return fGLContext->version(); } | 48 GrGLVersion glVersion() const { return fGLContext->version(); } |
49 GrGLSLGeneration glslGeneration() const { return fGLContext->glslGeneration(
); } | 49 GrGLSLGeneration glslGeneration() const { return fGLContext->glslGeneration(
); } |
50 const GrGLCaps& glCaps() const { return *fGLContext->caps(); } | 50 const GrGLCaps& glCaps() const { return *fGLContext->caps(); } |
51 | 51 |
(...skipping 555 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
607 bool fHWPLSEnabled; | 607 bool fHWPLSEnabled; |
608 bool fPLSHasBeenUsed; | 608 bool fPLSHasBeenUsed; |
609 | 609 |
610 float fHWMinSampleShading; | 610 float fHWMinSampleShading; |
611 | 611 |
612 typedef GrGpu INHERITED; | 612 typedef GrGpu INHERITED; |
613 friend class GrGLPathRendering; // For accessing setTextureUnit. | 613 friend class GrGLPathRendering; // For accessing setTextureUnit. |
614 }; | 614 }; |
615 | 615 |
616 #endif | 616 #endif |
OLD | NEW |