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 #include <limits> | 8 #include <limits> |
9 #include <string> | 9 #include <string> |
10 #include <utility> | 10 #include <utility> |
(...skipping 981 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
992 delegate_->DidCompleteSwapBuffers(); | 992 delegate_->DidCompleteSwapBuffers(); |
993 bool threaded = !!compositor_deps_->GetCompositorImplThreadTaskRunner().get(); | 993 bool threaded = !!compositor_deps_->GetCompositorImplThreadTaskRunner().get(); |
994 if (!threaded) | 994 if (!threaded) |
995 delegate_->OnSwapBuffersComplete(); | 995 delegate_->OnSwapBuffersComplete(); |
996 } | 996 } |
997 | 997 |
998 void RenderWidgetCompositor::DidCompletePageScaleAnimation() { | 998 void RenderWidgetCompositor::DidCompletePageScaleAnimation() { |
999 delegate_->DidCompletePageScaleAnimation(); | 999 delegate_->DidCompletePageScaleAnimation(); |
1000 } | 1000 } |
1001 | 1001 |
| 1002 void RenderWidgetCompositor::ReportFixedRasterScaleUseCounters( |
| 1003 bool has_blurry_content, |
| 1004 bool has_potential_performance_regression) { |
| 1005 delegate_->ReportFixedRasterScaleUseCounters( |
| 1006 has_blurry_content, has_potential_performance_regression); |
| 1007 } |
| 1008 |
1002 void RenderWidgetCompositor::RequestScheduleAnimation() { | 1009 void RenderWidgetCompositor::RequestScheduleAnimation() { |
1003 delegate_->RequestScheduleAnimation(); | 1010 delegate_->RequestScheduleAnimation(); |
1004 } | 1011 } |
1005 | 1012 |
1006 void RenderWidgetCompositor::DidPostSwapBuffers() { | 1013 void RenderWidgetCompositor::DidPostSwapBuffers() { |
1007 delegate_->OnSwapBuffersPosted(); | 1014 delegate_->OnSwapBuffersPosted(); |
1008 } | 1015 } |
1009 | 1016 |
1010 void RenderWidgetCompositor::DidAbortSwapBuffers() { | 1017 void RenderWidgetCompositor::DidAbortSwapBuffers() { |
1011 delegate_->OnSwapBuffersAborted(); | 1018 delegate_->OnSwapBuffersAborted(); |
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1123 #endif | 1130 #endif |
1124 return actual; | 1131 return actual; |
1125 } | 1132 } |
1126 | 1133 |
1127 void RenderWidgetCompositor::SetPaintedDeviceScaleFactor( | 1134 void RenderWidgetCompositor::SetPaintedDeviceScaleFactor( |
1128 float device_scale) { | 1135 float device_scale) { |
1129 layer_tree_host_->SetPaintedDeviceScaleFactor(device_scale); | 1136 layer_tree_host_->SetPaintedDeviceScaleFactor(device_scale); |
1130 } | 1137 } |
1131 | 1138 |
1132 } // namespace content | 1139 } // namespace content |
OLD | NEW |