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

Unified Diff: gpu/command_buffer/tests/egl_test.cc

Issue 2023333002: Migrate WaitableEvent to enum-based constructor in gpu/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@WEvent_enums
Patch Set: Created 4 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/service/in_process_command_buffer.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gpu/command_buffer/tests/egl_test.cc
diff --git a/gpu/command_buffer/tests/egl_test.cc b/gpu/command_buffer/tests/egl_test.cc
index fceffdfbc4e6ba54e2f08eff22f976249948d078..563798afc3ecc3032613caff4f119c71bd68914c 100644
--- a/gpu/command_buffer/tests/egl_test.cc
+++ b/gpu/command_buffer/tests/egl_test.cc
@@ -511,7 +511,9 @@ void EGLThreadTest::SetUp() {
}
void EGLThreadTest::TearDown() {
- base::WaitableEvent completion(true, false);
+ base::WaitableEvent completion(
+ base::WaitableEvent::ResetPolicy::MANUAL,
+ base::WaitableEvent::InitialState::NOT_SIGNALED);
other_thread_.task_runner()->PostTask(
FROM_HERE, base::Bind(&EGLThreadTest::OtherThreadTearDown,
base::Unretained(this), &completion));
@@ -550,7 +552,9 @@ TEST_F(EGLThreadTest, Basic) {
EXPECT_TRUE(eglMakeCurrent(display_, surface, surface, context));
- base::WaitableEvent completion(false, false);
+ base::WaitableEvent completion(
+ base::WaitableEvent::ResetPolicy::AUTOMATIC,
+ base::WaitableEvent::InitialState::NOT_SIGNALED);
EGLBoolean result = EGL_FALSE;
other_thread_.task_runner()->PostTask(
« no previous file with comments | « gpu/command_buffer/service/in_process_command_buffer.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698