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

Unified Diff: gpu/tools/compositor_model_bench/compositor_model_bench.cc

Issue 1129903002: gpu: Remove use of MessageLoopProxy and deprecated MessageLoop APIs (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Really rebase. Created 5 years, 7 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: gpu/tools/compositor_model_bench/compositor_model_bench.cc
diff --git a/gpu/tools/compositor_model_bench/compositor_model_bench.cc b/gpu/tools/compositor_model_bench/compositor_model_bench.cc
index 1160ff70891e85597b35b9f794998f23d5a776a0..da2bf5742ba732d0face8ac857b95adbe9818d5e 100644
--- a/gpu/tools/compositor_model_bench/compositor_model_bench.cc
+++ b/gpu/tools/compositor_model_bench/compositor_model_bench.cc
@@ -28,8 +28,10 @@
#include "base/files/file_enumerator.h"
#include "base/files/file_path.h"
#include "base/files/file_util.h"
+#include "base/location.h"
#include "base/memory/scoped_ptr.h"
-#include "base/message_loop/message_loop.h"
no sievers 2015/05/06 21:51:10 You need to leave this one in to fix the build.
Sami 2015/05/07 10:44:11 Ah, thanks. Done.
+#include "base/single_thread_task_runner.h"
+#include "base/thread_task_runner_handle.h"
#include "base/time/time.h"
#include "gpu/tools/compositor_model_bench/render_model_utils.h"
#include "gpu/tools/compositor_model_bench/render_models.h"
@@ -119,9 +121,9 @@ class Simulator {
LOG(INFO) << "Running " << sims_remaining_.size() << " simulations.";
- loop.PostTask(FROM_HERE,
- base::Bind(&Simulator::ProcessEvents,
- weak_factory_.GetWeakPtr()));
+ loop.task_runner()->PostTask(
+ FROM_HERE,
+ base::Bind(&Simulator::ProcessEvents, weak_factory_.GetWeakPtr()));
loop.Run();
}
@@ -264,7 +266,7 @@ class Simulator {
ExposureMask,
reinterpret_cast<XEvent*>(&ev));
- base::MessageLoop::current()->PostTask(
+ base::ThreadTaskRunnerHandle::Get()->PostTask(
FROM_HERE,
base::Bind(&Simulator::UpdateLoop, weak_factory_.GetWeakPtr()));
}

Powered by Google App Engine
This is Rietveld 408576698