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

Unified Diff: content/gpu/gpu_child_thread.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
« no previous file with comments | « content/common/sandbox_mac_unittest_helper.mm ('k') | content/gpu/gpu_info_collector.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/gpu/gpu_child_thread.cc
diff --git a/content/gpu/gpu_child_thread.cc b/content/gpu/gpu_child_thread.cc
index b8ce0a91e385b016d2c05abc6c5e7ff1e047f369..165d9dfce671093bc9f542f1e0985bb1e32d562a 100644
--- a/content/gpu/gpu_child_thread.cc
+++ b/content/gpu/gpu_child_thread.cc
@@ -159,7 +159,7 @@ void GpuChildThread::OnInitialize() {
}
void GpuChildThread::StopWatchdog() {
- if (watchdog_thread_.get()) {
+ if (watchdog_thread_) {
watchdog_thread_->Stop();
}
}
@@ -197,7 +197,7 @@ void GpuChildThread::OnCollectGraphicsInfo() {
void GpuChildThread::OnGetVideoMemoryUsageStats() {
GPUVideoMemoryUsageStats video_memory_usage_stats;
- if (gpu_channel_manager_.get())
+ if (gpu_channel_manager_)
gpu_channel_manager_->gpu_memory_manager()->GetVideoMemoryUsageStats(
&video_memory_usage_stats);
Send(new GpuHostMsg_VideoMemoryUsageStats(video_memory_usage_stats));
@@ -205,7 +205,7 @@ void GpuChildThread::OnGetVideoMemoryUsageStats() {
void GpuChildThread::OnClean() {
VLOG(1) << "GPU: Removing all contexts";
- if (gpu_channel_manager_.get())
+ if (gpu_channel_manager_)
gpu_channel_manager_->LoseAllContexts();
}
@@ -226,7 +226,7 @@ void GpuChildThread::OnHang() {
void GpuChildThread::OnDisableWatchdog() {
VLOG(1) << "GPU: Disabling watchdog thread";
- if (watchdog_thread_.get()) {
+ if (watchdog_thread_) {
// Disarm the watchdog before shutting down the message loop. This prevents
// the future posting of tasks to the message loop.
if (watchdog_thread_->message_loop())
« no previous file with comments | « content/common/sandbox_mac_unittest_helper.mm ('k') | content/gpu/gpu_info_collector.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698