Skip to content

Commit

Permalink
Fix two more compile errors for WaitableEvent boolean-based construct…
Browse files Browse the repository at this point in the history
…or removal.

Caught by dry-run @ https://codereview.chromium.org/2030683005/

BUG=612843
R=fdoray@chromium.org
TBR=danakj@chromium.org

Review-Url: https://codereview.chromium.org/2050283002
Cr-Commit-Position: refs/heads/master@{#398927}
  • Loading branch information
gab authored and Commit bot committed Jun 9, 2016
1 parent 6f104bf commit 6e92a38
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion base/mac/libdispatch_task_runner.cc
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ namespace mac {

LibDispatchTaskRunner::LibDispatchTaskRunner(const char* name)
: queue_(dispatch_queue_create(name, NULL)),
queue_finalized_(false, false) {
queue_finalized_(base::WaitableEvent::ResetPolicy::AUTOMATIC,
base::WaitableEvent::InitialState::NOT_SIGNALED) {
dispatch_set_context(queue_, this);
dispatch_set_finalizer_f(queue_, &LibDispatchTaskRunner::Finalizer);
}
Expand Down
3 changes: 2 additions & 1 deletion media/gpu/v4l2_video_decode_accelerator.cc
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,8 @@ V4L2VideoDecodeAccelerator::V4L2VideoDecodeAccelerator(
output_dpb_size_(0),
output_planes_count_(0),
picture_clearing_count_(0),
pictures_assigned_(false, false),
pictures_assigned_(base::WaitableEvent::ResetPolicy::AUTOMATIC,
base::WaitableEvent::InitialState::NOT_SIGNALED),
device_poll_thread_("V4L2DevicePollThread"),
egl_display_(egl_display),
get_gl_context_cb_(get_gl_context_cb),
Expand Down

0 comments on commit 6e92a38

Please sign in to comment.