Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(13)

Side by Side Diff: content/renderer/gpu/render_widget_compositor.cc

Issue 2068413002: cc: Remove fixed raster scale, stop rasterizing with will-change. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: compile fix Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « content/renderer/gpu/render_widget_compositor.h ('k') | content/renderer/gpu/render_widget_compositor_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698