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

Unified Diff: gpu/command_buffer/client/gl_in_process_context.cc

Issue 500243002: Remove implicit conversions from scoped_refptr to T* in gpu/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Revert silliness Created 6 years, 4 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 | « no previous file | gpu/command_buffer/client/mapped_memory.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gpu/command_buffer/client/gl_in_process_context.cc
diff --git a/gpu/command_buffer/client/gl_in_process_context.cc b/gpu/command_buffer/client/gl_in_process_context.cc
index a5648dfd6e957c99c4e7c5efe75cbe58e4125959..1441d034e52936cf6c5553ebe94691febb5410bb 100644
--- a/gpu/command_buffer/client/gl_in_process_context.cc
+++ b/gpu/command_buffer/client/gl_in_process_context.cc
@@ -160,7 +160,7 @@ bool GLInProcessContextImpl::Initialize(
if (!context->context_lost_) {
share_group = context->gles2_implementation_->share_group();
share_command_buffer = context->command_buffer_.get();
- DCHECK(share_group);
+ DCHECK(share_group.get());
DCHECK(share_command_buffer);
break;
}
@@ -170,7 +170,7 @@ bool GLInProcessContextImpl::Initialize(
static_cast<GLInProcessContextImpl*>(share_context);
share_group = impl->gles2_implementation_->share_group();
share_command_buffer = impl->command_buffer_.get();
- DCHECK(share_group);
+ DCHECK(share_group.get());
DCHECK(share_command_buffer);
}
@@ -202,13 +202,13 @@ bool GLInProcessContextImpl::Initialize(
bool bind_generates_resource = false;
// Create the object exposing the OpenGL API.
- gles2_implementation_.reset(new gles2::GLES2Implementation(
- gles2_helper_.get(),
- share_group,
- transfer_buffer_.get(),
- bind_generates_resource,
- attribs.lose_context_when_out_of_memory,
- command_buffer_.get()));
+ gles2_implementation_.reset(
+ new gles2::GLES2Implementation(gles2_helper_.get(),
+ share_group.get(),
+ transfer_buffer_.get(),
+ bind_generates_resource,
+ attribs.lose_context_when_out_of_memory,
+ command_buffer_.get()));
if (use_global_share_group) {
g_all_shared_contexts.Get().insert(this);
« no previous file with comments | « no previous file | gpu/command_buffer/client/mapped_memory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698