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

Unified Diff: cc/layers/texture_layer_unittest.cc

Issue 2052573002: Migrate to enum-based constructor for callsites using non-inlined bools. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@d_0_windows_manual
Patch Set: Created 4 years, 6 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 | components/mus/gpu/gpu_service_mus.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/layers/texture_layer_unittest.cc
diff --git a/cc/layers/texture_layer_unittest.cc b/cc/layers/texture_layer_unittest.cc
index 8a0ffdc23a1955665db4eed26a3ed69015c6b246..af8f1feef68a2aba45ef112e0bb917ec3c140c8d 100644
--- a/cc/layers/texture_layer_unittest.cc
+++ b/cc/layers/texture_layer_unittest.cc
@@ -347,9 +347,8 @@ class TextureLayerMailboxHolderTest : public TextureLayerTest {
}
void Wait(const base::Thread& thread) {
- bool manual_reset = false;
- bool initially_signaled = false;
- base::WaitableEvent event(manual_reset, initially_signaled);
+ base::WaitableEvent event(base::WaitableEvent::ResetPolicy::AUTOMATIC,
+ base::WaitableEvent::InitialState::NOT_SIGNALED);
thread.message_loop()->task_runner()->PostTask(
FROM_HERE,
base::Bind(&base::WaitableEvent::Signal, base::Unretained(&event)));
@@ -587,11 +586,15 @@ TEST_F(TextureLayerMailboxHolderTest, TwoCompositors_SecondImplRefShortcut) {
Release(test_data_.mailbox_name1_, SyncTokenFromUInt(200), true))
.Times(1);
- bool manual_reset = false;
- bool initially_signaled = false;
- base::WaitableEvent begin_capture(manual_reset, initially_signaled);
- base::WaitableEvent wait_for_capture(manual_reset, initially_signaled);
- base::WaitableEvent stop_capture(manual_reset, initially_signaled);
+ base::WaitableEvent begin_capture(
+ base::WaitableEvent::ResetPolicy::AUTOMATIC,
+ base::WaitableEvent::InitialState::NOT_SIGNALED);
+ base::WaitableEvent wait_for_capture(
+ base::WaitableEvent::ResetPolicy::AUTOMATIC,
+ base::WaitableEvent::InitialState::NOT_SIGNALED);
+ base::WaitableEvent stop_capture(
+ base::WaitableEvent::ResetPolicy::AUTOMATIC,
+ base::WaitableEvent::InitialState::NOT_SIGNALED);
// Post a task to start capturing tasks on the main thread. This will block
// the main thread until we signal the |stop_capture| event.
« no previous file with comments | « no previous file | components/mus/gpu/gpu_service_mus.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698