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

Unified Diff: components/mus/gpu/gpu_service_mus.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 | « cc/layers/texture_layer_unittest.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/mus/gpu/gpu_service_mus.cc
diff --git a/components/mus/gpu/gpu_service_mus.cc b/components/mus/gpu/gpu_service_mus.cc
index 561dbeac921067ca01c97d01907485e9b015e73e..51f23270d639898330ddd59d34994de2652e346d 100644
--- a/components/mus/gpu/gpu_service_mus.cc
+++ b/components/mus/gpu/gpu_service_mus.cc
@@ -177,9 +177,8 @@ void GpuServiceMus::Initialize() {
CHECK(io_thread_.StartWithOptions(thread_options));
IPC::ChannelHandle channel_handle;
- bool manual_reset = true;
- bool initially_signaled = false;
- base::WaitableEvent event(manual_reset, initially_signaled);
+ base::WaitableEvent event(base::WaitableEvent::ResetPolicy::MANUAL,
+ base::WaitableEvent::InitialState::NOT_SIGNALED);
gpu_thread_.task_runner()->PostTask(
FROM_HERE, base::Bind(&GpuServiceMus::InitializeOnGpuThread,
base::Unretained(this), &channel_handle, &event));
« no previous file with comments | « cc/layers/texture_layer_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698