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

Side by Side Diff: content/renderer/render_widget.cc

Issue 1946403003: Add fixed raster scale use counter histograms. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: review+fixup 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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/render_widget.h" 5 #include "content/renderer/render_widget.h"
6 6
7 #include <memory> 7 #include <memory>
8 #include <utility> 8 #include <utility>
9 9
10 #include "base/auto_reset.h" 10 #include "base/auto_reset.h"
(...skipping 896 matching lines...) Expand 10 before | Expand all | Expand 10 after
907 // The UpdateTextInputState can result in further layout and possibly 907 // The UpdateTextInputState can result in further layout and possibly
908 // enable GPU acceleration so they need to be called before any painting 908 // enable GPU acceleration so they need to be called before any painting
909 // is done. 909 // is done.
910 UpdateTextInputState(ShowIme::HIDE_IME, ChangeSource::FROM_NON_IME); 910 UpdateTextInputState(ShowIme::HIDE_IME, ChangeSource::FROM_NON_IME);
911 UpdateSelectionBounds(); 911 UpdateSelectionBounds();
912 912
913 FOR_EACH_OBSERVER(RenderFrameProxy, render_frame_proxies_, 913 FOR_EACH_OBSERVER(RenderFrameProxy, render_frame_proxies_,
914 WillBeginCompositorFrame()); 914 WillBeginCompositorFrame());
915 } 915 }
916 916
917 void RenderWidget::ReportFixedRasterScaleUseCounters(
918 bool has_blurry_content,
919 bool has_potential_performance_regression) {
920 webwidget_->reportFixedRasterScaleUseCounters(
921 has_blurry_content, has_potential_performance_regression);
922 }
923
917 /////////////////////////////////////////////////////////////////////////////// 924 ///////////////////////////////////////////////////////////////////////////////
918 // RenderWidgetInputHandlerDelegate 925 // RenderWidgetInputHandlerDelegate
919 926
920 void RenderWidget::FocusChangeComplete() { 927 void RenderWidget::FocusChangeComplete() {
921 if (owner_delegate_) 928 if (owner_delegate_)
922 owner_delegate_->RenderWidgetFocusChangeComplete(); 929 owner_delegate_->RenderWidgetFocusChangeComplete();
923 } 930 }
924 931
925 bool RenderWidget::HasTouchEventHandlersAt(const gfx::Point& point) const { 932 bool RenderWidget::HasTouchEventHandlersAt(const gfx::Point& point) const {
926 if (owner_delegate_) 933 if (owner_delegate_)
(...skipping 1157 matching lines...) Expand 10 before | Expand all | Expand 10 after
2084 } 2091 }
2085 2092
2086 float RenderWidget::GetOriginalDeviceScaleFactor() const { 2093 float RenderWidget::GetOriginalDeviceScaleFactor() const {
2087 return 2094 return
2088 screen_metrics_emulator_ ? 2095 screen_metrics_emulator_ ?
2089 screen_metrics_emulator_->original_screen_info().deviceScaleFactor : 2096 screen_metrics_emulator_->original_screen_info().deviceScaleFactor :
2090 device_scale_factor_; 2097 device_scale_factor_;
2091 } 2098 }
2092 2099
2093 } // namespace content 2100 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698