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 1007 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1018 delegate_->DidCompleteSwapBuffers(); | 1018 delegate_->DidCompleteSwapBuffers(); |
1019 bool threaded = !!compositor_deps_->GetCompositorImplThreadTaskRunner().get(); | 1019 bool threaded = !!compositor_deps_->GetCompositorImplThreadTaskRunner().get(); |
1020 if (!threaded) | 1020 if (!threaded) |
1021 delegate_->OnSwapBuffersComplete(); | 1021 delegate_->OnSwapBuffersComplete(); |
1022 } | 1022 } |
1023 | 1023 |
1024 void RenderWidgetCompositor::DidCompletePageScaleAnimation() { | 1024 void RenderWidgetCompositor::DidCompletePageScaleAnimation() { |
1025 delegate_->DidCompletePageScaleAnimation(); | 1025 delegate_->DidCompletePageScaleAnimation(); |
1026 } | 1026 } |
1027 | 1027 |
1028 void RenderWidgetCompositor::ReportFixedRasterScaleUseCounters( | |
1029 bool has_blurry_content, | |
1030 bool has_potential_performance_regression) { | |
1031 delegate_->ReportFixedRasterScaleUseCounters( | |
1032 has_blurry_content, has_potential_performance_regression); | |
1033 } | |
1034 | |
1035 void RenderWidgetCompositor::RequestScheduleAnimation() { | 1028 void RenderWidgetCompositor::RequestScheduleAnimation() { |
1036 delegate_->RequestScheduleAnimation(); | 1029 delegate_->RequestScheduleAnimation(); |
1037 } | 1030 } |
1038 | 1031 |
1039 void RenderWidgetCompositor::DidPostSwapBuffers() { | 1032 void RenderWidgetCompositor::DidPostSwapBuffers() { |
1040 delegate_->OnSwapBuffersPosted(); | 1033 delegate_->OnSwapBuffersPosted(); |
1041 } | 1034 } |
1042 | 1035 |
1043 void RenderWidgetCompositor::DidAbortSwapBuffers() { | 1036 void RenderWidgetCompositor::DidAbortSwapBuffers() { |
1044 delegate_->OnSwapBuffersAborted(); | 1037 delegate_->OnSwapBuffersAborted(); |
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1156 #endif | 1149 #endif |
1157 return actual; | 1150 return actual; |
1158 } | 1151 } |
1159 | 1152 |
1160 void RenderWidgetCompositor::SetPaintedDeviceScaleFactor( | 1153 void RenderWidgetCompositor::SetPaintedDeviceScaleFactor( |
1161 float device_scale) { | 1154 float device_scale) { |
1162 layer_tree_host_->SetPaintedDeviceScaleFactor(device_scale); | 1155 layer_tree_host_->SetPaintedDeviceScaleFactor(device_scale); |
1163 } | 1156 } |
1164 | 1157 |
1165 } // namespace content | 1158 } // namespace content |
OLD | NEW |