Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(377)

Side by Side Diff: src/gpu/gl/GrGLGpu.h

Issue 1852733002: Add GrContext::releaseAndAbandonContext() (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Fix no-gpu build, add null check, add unit test" Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/gpu/GrGpu.cpp ('k') | src/gpu/gl/GrGLGpu.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « src/gpu/GrGpu.cpp ('k') | src/gpu/gl/GrGLGpu.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698