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

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

Issue 14335017: content: Use base::MessageLoop. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase 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/gpu/gpu_command_buffer_stub.cc ('k') | content/common/npobject_stub.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/gpu/gpu_memory_manager.cc
diff --git a/content/common/gpu/gpu_memory_manager.cc b/content/common/gpu/gpu_memory_manager.cc
index 756b5727b231ef36fb70700351598f42f1d03af0..4794b9f188838e17aee924a8402fc03949b6b676 100644
--- a/content/common/gpu/gpu_memory_manager.cc
+++ b/content/common/gpu/gpu_memory_manager.cc
@@ -215,9 +215,8 @@ void GpuMemoryManager::ScheduleManage(
if (manage_immediate_scheduled_)
return;
if (schedule_manage_time == kScheduleManageNow) {
- MessageLoop::current()->PostTask(
- FROM_HERE,
- base::Bind(&GpuMemoryManager::Manage, AsWeakPtr()));
+ base::MessageLoop::current()->PostTask(
+ FROM_HERE, base::Bind(&GpuMemoryManager::Manage, AsWeakPtr()));
manage_immediate_scheduled_ = true;
if (!delayed_manage_callback_.IsCancelled())
delayed_manage_callback_.Cancel();
@@ -226,10 +225,10 @@ void GpuMemoryManager::ScheduleManage(
return;
delayed_manage_callback_.Reset(base::Bind(&GpuMemoryManager::Manage,
AsWeakPtr()));
- MessageLoop::current()->PostDelayedTask(
- FROM_HERE,
- delayed_manage_callback_.callback(),
- base::TimeDelta::FromMilliseconds(kDelayedScheduleManageTimeoutMs));
+ base::MessageLoop::current()->PostDelayedTask(
+ FROM_HERE,
+ delayed_manage_callback_.callback(),
+ base::TimeDelta::FromMilliseconds(kDelayedScheduleManageTimeoutMs));
}
}
« no previous file with comments | « content/common/gpu/gpu_command_buffer_stub.cc ('k') | content/common/npobject_stub.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698