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

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

Issue 1946403003: Add fixed raster scale use counter histograms. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase+fix Created 4 years, 7 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 980 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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
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