summaryrefslogtreecommitdiffstats
path: root/content/gpu/gpu_child_thread.cc
diff options
context:
space:
mode:
authorerg@chromium.org <erg@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-04-17 16:43:27 +0000
committererg@chromium.org <erg@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-04-17 16:43:27 +0000
commit59383c78c7b67b435ff4970060213928e1f153b8 (patch)
tree5c215c1ba34a10bf83ceea455552908c20061a5b /content/gpu/gpu_child_thread.cc
parentbf36fe526209a41c15f6747ffc1392206338896c (diff)
downloadchromium_src-59383c78c7b67b435ff4970060213928e1f153b8.zip
chromium_src-59383c78c7b67b435ff4970060213928e1f153b8.tar.gz
chromium_src-59383c78c7b67b435ff4970060213928e1f153b8.tar.bz2
Cleanup: Remove unnecessary ".get()" from scoped_ptrs<>.
In r174057, ajwong@ added support for implicit testing to scoped_ptr<>. Removes these in content/. BUG=232084 Review URL: https://codereview.chromium.org/14081010 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@194608 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/gpu/gpu_child_thread.cc')
-rw-r--r--content/gpu/gpu_child_thread.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/content/gpu/gpu_child_thread.cc b/content/gpu/gpu_child_thread.cc
index b8ce0a9..165d9dfc 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())