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

Unified Diff: gpu/command_buffer/common/command_buffer_shared_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
« no previous file with comments | « no previous file | gpu/command_buffer/common/gles2_cmd_format_test.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gpu/command_buffer/common/command_buffer_shared_test.cc
diff --git a/gpu/command_buffer/common/command_buffer_shared_test.cc b/gpu/command_buffer/common/command_buffer_shared_test.cc
index 0615f7421d6e80f58201d0bb35155aa3ba2e00f9..83aed36882bddc3b7de12b59c019c8395757ef6c 100644
--- a/gpu/command_buffer/common/command_buffer_shared_test.cc
+++ b/gpu/command_buffer/common/command_buffer_shared_test.cc
@@ -5,8 +5,11 @@
// This file contains the tests for the CommandBufferSharedState class.
#include "gpu/command_buffer/common/command_buffer_shared.h"
+
#include "base/bind.h"
+#include "base/location.h"
#include "base/memory/scoped_ptr.h"
+#include "base/single_thread_task_runner.h"
#include "base/threading/thread.h"
#include "testing/gtest/include/gtest/gtest.h"
@@ -60,9 +63,8 @@ TEST_F(CommandBufferSharedTest, TestConsistency) {
memset(buffer.get(), 0, kSize * sizeof(int32));
consumer.Start();
- consumer.message_loop()->PostTask(
- FROM_HERE, base::Bind(&WriteToState, buffer.get(),
- shared_state_.get()));
+ consumer.task_runner()->PostTask(
+ FROM_HERE, base::Bind(&WriteToState, buffer.get(), shared_state_.get()));
CommandBuffer::State last_state;
while (1) {
« no previous file with comments | « no previous file | gpu/command_buffer/common/gles2_cmd_format_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698