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

Unified Diff: ui/gl/gl_context.h

Issue 2132913002: Remove VirtualGLApi (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: extra cleanup Created 4 years, 5 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 side-by-side diff with in-line comments
Download patch
Index: ui/gl/gl_context.h
diff --git a/ui/gl/gl_context.h b/ui/gl/gl_context.h
index ba921e3d79c03e7ee22aedaac2953ec0669a7267..f61de09866262d06b41ee89d4815b8bf7d17ae57 100644
--- a/ui/gl/gl_context.h
+++ b/ui/gl/gl_context.h
@@ -31,7 +31,6 @@ namespace gl {
class GLSurface;
class GPUTiming;
class GPUTimingClient;
-class VirtualGLApi;
struct GLVersionInfo;
// Encapsulates an OpenGL context, hiding platform specific management.
@@ -116,9 +115,6 @@ class GL_EXPORT GLContext : public base::RefCounted<GLContext> {
virtual bool WasAllocatedUsingRobustnessExtension();
- // Use this context for virtualization.
- void SetupForVirtualization();
-
// Make this context current when used for context virtualization.
bool MakeVirtuallyCurrent(GLContext* virtual_context, GLSurface* surface);
@@ -168,11 +164,10 @@ class GL_EXPORT GLContext : public base::RefCounted<GLContext> {
friend class base::RefCounted<GLContext>;
// For GetRealCurrent.
- friend class VirtualGLApi;
friend class gpu::GLContextVirtual;
scoped_refptr<GLShareGroup> share_group_;
- std::unique_ptr<VirtualGLApi> virtual_gl_api_;
+ GLContext* current_virtual_context_;
bool state_dirtied_externally_;
std::unique_ptr<GLStateRestorer> state_restorer_;
std::unique_ptr<GLVersionInfo> version_info_;

Powered by Google App Engine
This is Rietveld 408576698