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

Unified Diff: gpu/command_buffer/common/gles2_cmd_format_test.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
Index: gpu/command_buffer/common/gles2_cmd_format_test.cc
diff --git a/gpu/command_buffer/common/gles2_cmd_format_test.cc b/gpu/command_buffer/common/gles2_cmd_format_test.cc
index ea683a668eb5fa94f07423a712c71cc37724e424..d11b2c5d1340f36f59858cb0b3a5eaa918d10117 100644
--- a/gpu/command_buffer/common/gles2_cmd_format_test.cc
+++ b/gpu/command_buffer/common/gles2_cmd_format_test.cc
@@ -7,10 +7,12 @@
#include <limits>
#include "base/bind.h"
+#include "base/location.h"
+#include "base/single_thread_task_runner.h"
#include "base/synchronization/waitable_event.h"
#include "base/threading/thread.h"
-#include "testing/gtest/include/gtest/gtest.h"
#include "gpu/command_buffer/common/gles2_cmd_format.h"
+#include "testing/gtest/include/gtest/gtest.h"
namespace gpu {
namespace gles2 {
@@ -94,18 +96,16 @@ TEST(GLES2FormatAsyncUploadSyncTest, AsyncUploadSync) {
// Set the async upload token on the fake upload thread and assert that
// the associated buffer still has the given token.
- thread.message_loop()->PostTask(FROM_HERE,
- base::Bind(&SignalCompletion,
- &buffer_tokens[buffer],
- async_token,
- &sync));
+ thread.task_runner()->PostTask(
+ FROM_HERE, base::Bind(&SignalCompletion, &buffer_tokens[buffer],
+ async_token, &sync));
}
// Flush the thread message loop before starting again.
base::WaitableEvent waitable(false, false);
- thread.message_loop()->PostTask(FROM_HERE,
- base::Bind(&base::WaitableEvent::Signal,
- base::Unretained(&waitable)));
+ thread.task_runner()->PostTask(
+ FROM_HERE,
+ base::Bind(&base::WaitableEvent::Signal, base::Unretained(&waitable)));
waitable.Wait();
}
}

Powered by Google App Engine
This is Rietveld 408576698