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