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