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

Unified Diff: content/common/gpu/gpu_channel.cc

Issue 11275088: Remove implicit scoped_refptr operator T* Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 8 years, 2 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 | « content/common/child_process.h ('k') | content/common/gpu/gpu_command_buffer_stub.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/gpu/gpu_channel.cc
diff --git a/content/common/gpu/gpu_channel.cc b/content/common/gpu/gpu_channel.cc
index a13965048a4585a631dff4ec7b0ff401eb0b64ac..0d845c956f1bc5428a4f2d620d86b39689f152b9 100644
--- a/content/common/gpu/gpu_channel.cc
+++ b/content/common/gpu/gpu_channel.cc
@@ -196,7 +196,7 @@ bool GpuChannel::Init(base::MessageLoopProxy* io_message_loop,
gpu_channel_manager_->sync_point_manager(),
base::MessageLoopProxy::current(),
unprocessed_messages_));
- channel_->AddFilter(filter);
+ channel_->AddFilter(filter.get());
return true;
}
@@ -326,8 +326,8 @@ void GpuChannel::CreateViewCommandBuffer(
this,
share_group,
window,
- mailbox_manager_,
- image_manager_,
+ mailbox_manager_.get(),
+ image_manager_.get(),
gfx::Size(),
disallowed_features_,
init_params.allowed_extensions,
@@ -366,7 +366,7 @@ void GpuChannel::CreateImage(
}
scoped_refptr<gfx::GLImage> image = gfx::GLImage::CreateGLImage(window);
- if (!image)
+ if (!image.get())
return;
image_manager_->AddImage(image.get(), image_id);
« no previous file with comments | « content/common/child_process.h ('k') | content/common/gpu/gpu_command_buffer_stub.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698