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

Side by Side Diff: content/renderer/gpu/render_widget_compositor.cc

Issue 2653933003: Make stream captures work on canvases that are not in the DOM. (Closed)
Patch Set: rebase Created 3 years, 10 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) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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/gpu/render_widget_compositor.h" 5 #include "content/renderer/gpu/render_widget_compositor.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include <cmath> 9 #include <cmath>
10 #include <limits> 10 #include <limits>
(...skipping 1087 matching lines...) Expand 10 before | Expand all | Expand 10 after
1098 void RenderWidgetCompositor::DidCompletePageScaleAnimation() { 1098 void RenderWidgetCompositor::DidCompletePageScaleAnimation() {
1099 delegate_->DidCompletePageScaleAnimation(); 1099 delegate_->DidCompletePageScaleAnimation();
1100 } 1100 }
1101 1101
1102 void RenderWidgetCompositor::RequestScheduleAnimation() { 1102 void RenderWidgetCompositor::RequestScheduleAnimation() {
1103 delegate_->RequestScheduleAnimation(); 1103 delegate_->RequestScheduleAnimation();
1104 } 1104 }
1105 1105
1106 void RenderWidgetCompositor::DidSubmitCompositorFrame() {} 1106 void RenderWidgetCompositor::DidSubmitCompositorFrame() {}
1107 1107
1108 void RenderWidgetCompositor::DidLoseCompositorFrameSink() { 1108 void RenderWidgetCompositor::DidLoseCompositorFrameSink() {}
1109 // The CompositorFrameSink is not lost in layout tests (single thread mode).
1110 NOTREACHED();
1111 }
1112 1109
1113 void RenderWidgetCompositor::SetFrameSinkId( 1110 void RenderWidgetCompositor::SetFrameSinkId(
1114 const cc::FrameSinkId& frame_sink_id) { 1111 const cc::FrameSinkId& frame_sink_id) {
1115 frame_sink_id_ = frame_sink_id; 1112 frame_sink_id_ = frame_sink_id;
1116 layer_tree_host_->SetFrameSinkId(frame_sink_id); 1113 layer_tree_host_->SetFrameSinkId(frame_sink_id);
1117 } 1114 }
1118 1115
1119 void RenderWidgetCompositor::SetPaintedDeviceScaleFactor( 1116 void RenderWidgetCompositor::SetPaintedDeviceScaleFactor(
1120 float device_scale) { 1117 float device_scale) {
1121 layer_tree_host_->SetPaintedDeviceScaleFactor(device_scale); 1118 layer_tree_host_->SetPaintedDeviceScaleFactor(device_scale);
1122 } 1119 }
1123 1120
1124 void RenderWidgetCompositor::SetDeviceColorSpace( 1121 void RenderWidgetCompositor::SetDeviceColorSpace(
1125 const gfx::ColorSpace& color_space) { 1122 const gfx::ColorSpace& color_space) {
1126 layer_tree_host_->SetDeviceColorSpace(color_space); 1123 layer_tree_host_->SetDeviceColorSpace(color_space);
1127 } 1124 }
1128 1125
1129 void RenderWidgetCompositor::SetIsForOopif(bool is_for_oopif) { 1126 void RenderWidgetCompositor::SetIsForOopif(bool is_for_oopif) {
1130 is_for_oopif_ = is_for_oopif; 1127 is_for_oopif_ = is_for_oopif;
1131 } 1128 }
1132 1129
1133 } // namespace content 1130 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698