OLD | NEW |
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 1097 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1108 void RenderWidgetCompositor::DidCompletePageScaleAnimation() { | 1108 void RenderWidgetCompositor::DidCompletePageScaleAnimation() { |
1109 delegate_->DidCompletePageScaleAnimation(); | 1109 delegate_->DidCompletePageScaleAnimation(); |
1110 } | 1110 } |
1111 | 1111 |
1112 void RenderWidgetCompositor::RequestScheduleAnimation() { | 1112 void RenderWidgetCompositor::RequestScheduleAnimation() { |
1113 delegate_->RequestScheduleAnimation(); | 1113 delegate_->RequestScheduleAnimation(); |
1114 } | 1114 } |
1115 | 1115 |
1116 void RenderWidgetCompositor::DidSubmitCompositorFrame() {} | 1116 void RenderWidgetCompositor::DidSubmitCompositorFrame() {} |
1117 | 1117 |
1118 void RenderWidgetCompositor::DidLoseCompositorFrameSink() { | 1118 void RenderWidgetCompositor::DidLoseCompositorFrameSink() {} |
1119 // The CompositorFrameSink is not lost in layout tests (single thread mode). | |
1120 NOTREACHED(); | |
1121 } | |
1122 | 1119 |
1123 void RenderWidgetCompositor::SetFrameSinkId( | 1120 void RenderWidgetCompositor::SetFrameSinkId( |
1124 const cc::FrameSinkId& frame_sink_id) { | 1121 const cc::FrameSinkId& frame_sink_id) { |
1125 frame_sink_id_ = frame_sink_id; | 1122 frame_sink_id_ = frame_sink_id; |
1126 layer_tree_host_->SetFrameSinkId(frame_sink_id); | 1123 layer_tree_host_->SetFrameSinkId(frame_sink_id); |
1127 } | 1124 } |
1128 | 1125 |
1129 void RenderWidgetCompositor::SetPaintedDeviceScaleFactor( | 1126 void RenderWidgetCompositor::SetPaintedDeviceScaleFactor( |
1130 float device_scale) { | 1127 float device_scale) { |
1131 layer_tree_host_->GetLayerTree()->SetPaintedDeviceScaleFactor(device_scale); | 1128 layer_tree_host_->GetLayerTree()->SetPaintedDeviceScaleFactor(device_scale); |
1132 } | 1129 } |
1133 | 1130 |
1134 void RenderWidgetCompositor::SetDeviceColorSpace( | 1131 void RenderWidgetCompositor::SetDeviceColorSpace( |
1135 const gfx::ColorSpace& color_space) { | 1132 const gfx::ColorSpace& color_space) { |
1136 layer_tree_host_->GetLayerTree()->SetDeviceColorSpace(color_space); | 1133 layer_tree_host_->GetLayerTree()->SetDeviceColorSpace(color_space); |
1137 } | 1134 } |
1138 | 1135 |
1139 void RenderWidgetCompositor::SetIsForOopif(bool is_for_oopif) { | 1136 void RenderWidgetCompositor::SetIsForOopif(bool is_for_oopif) { |
1140 is_for_oopif_ = is_for_oopif; | 1137 is_for_oopif_ = is_for_oopif; |
1141 } | 1138 } |
1142 | 1139 |
1143 } // namespace content | 1140 } // namespace content |
OLD | NEW |