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

Side by Side Diff: content/browser/gpu/browser_gpu_channel_host_factory.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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "content/browser/gpu/browser_gpu_channel_host_factory.h" 5 #include "content/browser/gpu/browser_gpu_channel_host_factory.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/threading/thread_restrictions.h" 8 #include "base/threading/thread_restrictions.h"
9 #include "content/browser/gpu/gpu_data_manager_impl.h" 9 #include "content/browser/gpu/gpu_data_manager_impl.h"
10 #include "content/browser/gpu/gpu_process_host.h" 10 #include "content/browser/gpu/gpu_process_host.h"
(...skipping 233 matching lines...) Expand 10 before | Expand all | Expand 10 after
244 EstablishGpuChannelOnIO(request); 244 EstablishGpuChannelOnIO(request);
245 } else { 245 } else {
246 request->channel_handle = channel_handle; 246 request->channel_handle = channel_handle;
247 request->gpu_info = gpu_info; 247 request->gpu_info = gpu_info;
248 request->event.Signal(); 248 request->event.Signal();
249 } 249 }
250 } 250 }
251 251
252 GpuChannelHost* BrowserGpuChannelHostFactory::EstablishGpuChannelSync( 252 GpuChannelHost* BrowserGpuChannelHostFactory::EstablishGpuChannelSync(
253 CauseForGpuLaunch cause_for_gpu_launch) { 253 CauseForGpuLaunch cause_for_gpu_launch) {
254 if (gpu_channel_.get()) { 254 if (gpu_channel_) {
255 // Recreate the channel if it has been lost. 255 // Recreate the channel if it has been lost.
256 if (gpu_channel_->state() == GpuChannelHost::kLost) 256 if (gpu_channel_->state() == GpuChannelHost::kLost)
257 gpu_channel_ = NULL; 257 gpu_channel_ = NULL;
258 else 258 else
259 return gpu_channel_.get(); 259 return gpu_channel_.get();
260 } 260 }
261 // Ensure initialization on the main thread. 261 // Ensure initialization on the main thread.
262 GpuDataManagerImpl::GetInstance(); 262 GpuDataManagerImpl::GetInstance();
263 263
264 EstablishRequest request(cause_for_gpu_launch); 264 EstablishRequest request(cause_for_gpu_launch);
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
313 filter->AddRoute(MSG_ROUTING_CONTROL, handler); 313 filter->AddRoute(MSG_ROUTING_CONTROL, handler);
314 314
315 GetIOLoopProxy()->PostTask( 315 GetIOLoopProxy()->PostTask(
316 FROM_HERE, 316 FROM_HERE,
317 base::Bind(&BrowserGpuChannelHostFactory::AddFilterOnIO, 317 base::Bind(&BrowserGpuChannelHostFactory::AddFilterOnIO,
318 gpu_host_id_, 318 gpu_host_id_,
319 filter)); 319 filter));
320 } 320 }
321 321
322 } // namespace content 322 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/geolocation/wifi_data_provider_linux.cc ('k') | content/browser/gpu/gpu_data_manager_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698