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

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: 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 897 matching lines...) Expand 10 before | Expand all | Expand 10 after
908 // The UpdateTextInputState can result in further layout and possibly 908 // The UpdateTextInputState can result in further layout and possibly
909 // enable GPU acceleration so they need to be called before any painting 909 // enable GPU acceleration so they need to be called before any painting
910 // is done. 910 // is done.
911 UpdateTextInputState(ShowIme::HIDE_IME, ChangeSource::FROM_NON_IME); 911 UpdateTextInputState(ShowIme::HIDE_IME, ChangeSource::FROM_NON_IME);
912 UpdateSelectionBounds(); 912 UpdateSelectionBounds();
913 913
914 FOR_EACH_OBSERVER(RenderFrameProxy, render_frame_proxies_, 914 FOR_EACH_OBSERVER(RenderFrameProxy, render_frame_proxies_,
915 WillBeginCompositorFrame()); 915 WillBeginCompositorFrame());
916 } 916 }
917 917
918 void RenderWidget::ReportFixedRasterScaleUseCounters(
919 bool has_blurry_content,
920 bool has_potential_performance_regression) {
921 webwidget_->reportFixedRasterScaleUseCounters(
922 has_blurry_content, has_potential_performance_regression);
923 }
924
918 /////////////////////////////////////////////////////////////////////////////// 925 ///////////////////////////////////////////////////////////////////////////////
919 // RenderWidgetInputHandlerDelegate 926 // RenderWidgetInputHandlerDelegate
920 927
921 void RenderWidget::FocusChangeComplete() { 928 void RenderWidget::FocusChangeComplete() {
922 if (owner_delegate_) 929 if (owner_delegate_)
923 owner_delegate_->RenderWidgetFocusChangeComplete(); 930 owner_delegate_->RenderWidgetFocusChangeComplete();
924 } 931 }
925 932
926 bool RenderWidget::HasTouchEventHandlersAt(const gfx::Point& point) const { 933 bool RenderWidget::HasTouchEventHandlersAt(const gfx::Point& point) const {
927 if (owner_delegate_) 934 if (owner_delegate_)
(...skipping 1159 matching lines...) Expand 10 before | Expand all | Expand 10 after
2087 } 2094 }
2088 2095
2089 float RenderWidget::GetOriginalDeviceScaleFactor() const { 2096 float RenderWidget::GetOriginalDeviceScaleFactor() const {
2090 return 2097 return
2091 screen_metrics_emulator_ ? 2098 screen_metrics_emulator_ ?
2092 screen_metrics_emulator_->original_screen_info().deviceScaleFactor : 2099 screen_metrics_emulator_->original_screen_info().deviceScaleFactor :
2093 device_scale_factor_; 2100 device_scale_factor_;
2094 } 2101 }
2095 2102
2096 } // namespace content 2103 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698