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

Side by Side Diff: content/renderer/render_view_impl.cc

Issue 2846713002: [Media] Added feature flag for new remote playback pipeline (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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "content/renderer/render_view_impl.h" 5 #include "content/renderer/render_view_impl.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <cmath> 8 #include <cmath>
9 #include <memory> 9 #include <memory>
10 10
(...skipping 1063 matching lines...) Expand 10 before | Expand all | Expand 10 after
1074 1074
1075 settings->SetUseSolidColorScrollbars(prefs.use_solid_color_scrollbars); 1075 settings->SetUseSolidColorScrollbars(prefs.use_solid_color_scrollbars);
1076 1076
1077 settings->SetShowContextMenuOnMouseUp(prefs.context_menu_on_mouse_up); 1077 settings->SetShowContextMenuOnMouseUp(prefs.context_menu_on_mouse_up);
1078 settings->SetAlwaysShowContextMenuOnTouch( 1078 settings->SetAlwaysShowContextMenuOnTouch(
1079 prefs.always_show_context_menu_on_touch); 1079 prefs.always_show_context_menu_on_touch);
1080 1080
1081 settings->SetHideDownloadUI(prefs.hide_download_ui); 1081 settings->SetHideDownloadUI(prefs.hide_download_ui);
1082 WebRuntimeFeatures::EnableBackgroundVideoTrackOptimization( 1082 WebRuntimeFeatures::EnableBackgroundVideoTrackOptimization(
1083 prefs.background_video_track_optimization_enabled); 1083 prefs.background_video_track_optimization_enabled);
1084 WebRuntimeFeatures::EnableNewRemotePlaybackPipeline(
1085 prefs.new_remote_playback_pipeline_enabled);
1084 1086
1085 settings->SetPresentationReceiver(prefs.presentation_receiver); 1087 settings->SetPresentationReceiver(prefs.presentation_receiver);
1086 1088
1087 settings->SetMediaControlsEnabled(prefs.media_controls_enabled); 1089 settings->SetMediaControlsEnabled(prefs.media_controls_enabled);
1088 1090
1089 #if defined(OS_MACOSX) 1091 #if defined(OS_MACOSX)
1090 settings->SetDoubleTapToZoomEnabled(true); 1092 settings->SetDoubleTapToZoomEnabled(true);
1091 web_view->SetMaximumLegibleScale(prefs.default_maximum_page_scale_factor); 1093 web_view->SetMaximumLegibleScale(prefs.default_maximum_page_scale_factor);
1092 #endif 1094 #endif
1093 1095
(...skipping 1566 matching lines...) Expand 10 before | Expand all | Expand 10 after
2660 input_event.GetCoalescedEventsPointers(), latency_info, 2662 input_event.GetCoalescedEventsPointers(), latency_info,
2661 dispatch_type); 2663 dispatch_type);
2662 return INPUT_EVENT_ACK_STATE_NOT_CONSUMED; 2664 return INPUT_EVENT_ACK_STATE_NOT_CONSUMED;
2663 } 2665 }
2664 idle_user_detector_->ActivityDetected(); 2666 idle_user_detector_->ActivityDetected();
2665 return RenderWidget::HandleInputEvent(input_event, latency_info, 2667 return RenderWidget::HandleInputEvent(input_event, latency_info,
2666 dispatch_type); 2668 dispatch_type);
2667 } 2669 }
2668 2670
2669 } // namespace content 2671 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698