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