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

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: Review comments. 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
« no previous file with comments | « gpu/command_buffer/tests/gl_readback_unittest.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..b3e209bbb060a9dd5fdf5a8cb0729cbaba9cff26 100644
--- a/gpu/tools/compositor_model_bench/compositor_model_bench.cc
+++ b/gpu/tools/compositor_model_bench/compositor_model_bench.cc
@@ -28,8 +28,11 @@
#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"
+#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 +122,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 +267,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()));
}
« no previous file with comments | « gpu/command_buffer/tests/gl_readback_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698