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

Unified Diff: gpu/command_buffer/service/gpu_processor_win.cc

Issue 2134006: Added EGL based GLContext.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 6 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: gpu/command_buffer/service/gpu_processor_win.cc
===================================================================
--- gpu/command_buffer/service/gpu_processor_win.cc (revision 49195)
+++ gpu/command_buffer/service/gpu_processor_win.cc (working copy)
@@ -22,26 +22,22 @@
// Get the parent decoder and the GLContext to share IDs with, if any.
gles2::GLES2Decoder* parent_decoder = NULL;
gfx::GLContext* parent_context = NULL;
- void* parent_handle = NULL;
if (parent) {
parent_decoder = parent->decoder_.get();
DCHECK(parent_decoder);
parent_context = parent_decoder->GetGLContext();
DCHECK(parent_context);
-
- parent_handle = parent_context->GetHandle();
- DCHECK(parent_handle);
}
// Create either a view or pbuffer based GLContext.
if (window) {
- DCHECK(!parent_handle);
+ DCHECK(!parent_context);
// TODO(apatrick): support multisampling.
context_.reset(gfx::GLContext::CreateViewGLContext(window, false));
} else {
- context_.reset(gfx::GLContext::CreateOffscreenGLContext(parent_handle));
+ context_.reset(gfx::GLContext::CreateOffscreenGLContext(parent_context));
}
if (!context_.get())
« no previous file with comments | « gpu/command_buffer/service/gpu_processor_mac.cc ('k') | gpu/command_buffer/service/program_manager_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698