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

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

Issue 2782006: Remove duplicated code in AcceleratedSurface using PbufferGLContext instead.... (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: Address review comments. 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
« no previous file with comments | « app/surface/accelerated_surface_mac.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gpu/command_buffer/service/gpu_processor_mac.cc
===================================================================
--- gpu/command_buffer/service/gpu_processor_mac.cc (revision 49795)
+++ gpu/command_buffer/service/gpu_processor_mac.cc (working copy)
@@ -40,8 +40,7 @@
if (window) {
surface_.reset(new AcceleratedSurface());
// TODO(apatrick): AcceleratedSurface will not work with an OSMesa context.
- if (!surface_->Initialize(
- static_cast<CGLContextObj>(context_->GetHandle()), false)) {
+ if (!surface_->Initialize(context_.get(), false)) {
Destroy();
return false;
}
« no previous file with comments | « app/surface/accelerated_surface_mac.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698