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

Unified Diff: content/common/gpu/client/gpu_channel_host.cc

Issue 14081010: Cleanup: Remove unnecessary ".get()" from scoped_ptrs<>. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix some gtk issues Created 7 years, 8 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: content/common/gpu/client/gpu_channel_host.cc
diff --git a/content/common/gpu/client/gpu_channel_host.cc b/content/common/gpu/client/gpu_channel_host.cc
index d5bb6b37ab7e03007e4a9b040a666670089dee3e..bd84d269f95b0a6532dfa3fd3dccd41881b47581 100644
--- a/content/common/gpu/client/gpu_channel_host.cc
+++ b/content/common/gpu/client/gpu_channel_host.cc
@@ -111,7 +111,7 @@ bool GpuChannelHost::Send(IPC::Message* message) {
// TODO: Can we just always use sync_filter_ since we setup the channel
// without a main listener?
if (factory_->IsMainThread()) {
- if (channel_.get()) {
+ if (channel_) {
// http://crbug.com/125264
base::ThreadRestrictions::ScopedAllowWait allow_wait;
return channel_->Send(message);
@@ -140,7 +140,7 @@ CommandBufferProxyImpl* GpuChannelHost::CreateViewCommandBuffer(
AutoLock lock(context_lock_);
// An error occurred. Need to get the host again to reinitialize it.
- if (!channel_.get())
+ if (!channel_)
return NULL;
GPUCreateCommandBufferConfig init_params;
@@ -172,7 +172,7 @@ CommandBufferProxyImpl* GpuChannelHost::CreateOffscreenCommandBuffer(
AutoLock lock(context_lock_);
// An error occurred. Need to get the host again to reinitialize it.
- if (!channel_.get())
+ if (!channel_)
return NULL;
GPUCreateCommandBufferConfig init_params;
@@ -254,7 +254,7 @@ base::SharedMemoryHandle GpuChannelHost::ShareToGpuProcess(
base::SharedMemory* shared_memory) {
AutoLock lock(context_lock_);
- if (!channel_.get())
+ if (!channel_)
return base::SharedMemory::NULLHandle();
base::SharedMemoryHandle handle;
« no previous file with comments | « content/common/gpu/client/gl_helper.cc ('k') | content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698