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

Unified Diff: remoting/protocol/webrtc_video_renderer_adapter.cc

Issue 2858083002: Use constexpr TaskTraits constructor in remoting. (Closed)
Patch Set: Created 3 years, 8 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/protocol/webrtc_video_renderer_adapter.cc
diff --git a/remoting/protocol/webrtc_video_renderer_adapter.cc b/remoting/protocol/webrtc_video_renderer_adapter.cc
index cc4c3146afef8afa5c5b5d97ce6848f499b82438..8e660333cdcd050f628321f01398fd297d0f8c94 100644
--- a/remoting/protocol/webrtc_video_renderer_adapter.cc
+++ b/remoting/protocol/webrtc_video_renderer_adapter.cc
@@ -175,8 +175,7 @@ void WebrtcVideoRendererAdapter::HandleFrameOnMainThread(
webrtc::DesktopSize(frame->width(), frame->height()));
base::PostTaskWithTraitsAndReplyWithResult(
- FROM_HERE, base::TaskTraits().WithShutdownBehavior(
- base::TaskShutdownBehavior::CONTINUE_ON_SHUTDOWN),
+ FROM_HERE, {base::TaskShutdownBehavior::CONTINUE_ON_SHUTDOWN},
base::Bind(&ConvertYuvToRgb, base::Passed(&frame),
base::Passed(&rgb_frame),
video_renderer_->GetFrameConsumer()->GetPixelFormat()),
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698