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

Side by Side Diff: content/browser/renderer_host/render_widget_host_impl.cc

Issue 833283003: Reland "Add new latency_info for tracking browser composite time." (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rename component Created 5 years, 11 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/browser/renderer_host/render_widget_host_impl.h" 5 #include "content/browser/renderer_host/render_widget_host_impl.h"
6 6
7 #include <math.h> 7 #include <math.h>
8 #include <set> 8 #include <set>
9 #include <utility> 9 #include <utility>
10 10
(...skipping 2139 matching lines...) Expand 10 before | Expand all | Expand 10 after
2150 RenderWidgetHostImpl::GetRootBrowserAccessibilityManager() { 2150 RenderWidgetHostImpl::GetRootBrowserAccessibilityManager() {
2151 return delegate_ ? delegate_->GetRootBrowserAccessibilityManager() : NULL; 2151 return delegate_ ? delegate_->GetRootBrowserAccessibilityManager() : NULL;
2152 } 2152 }
2153 2153
2154 BrowserAccessibilityManager* 2154 BrowserAccessibilityManager*
2155 RenderWidgetHostImpl::GetOrCreateRootBrowserAccessibilityManager() { 2155 RenderWidgetHostImpl::GetOrCreateRootBrowserAccessibilityManager() {
2156 return delegate_ ? 2156 return delegate_ ?
2157 delegate_->GetOrCreateRootBrowserAccessibilityManager() : NULL; 2157 delegate_->GetOrCreateRootBrowserAccessibilityManager() : NULL;
2158 } 2158 }
2159 2159
2160 base::TimeDelta RenderWidgetHostImpl::GetEstimatedBrowserCompositeTime() const {
2161 return latency_tracker_.GetEstimatedBrowserCompositeTime();
2162 }
2163
2160 #if defined(OS_WIN) 2164 #if defined(OS_WIN)
2161 gfx::NativeViewAccessible 2165 gfx::NativeViewAccessible
2162 RenderWidgetHostImpl::GetParentNativeViewAccessible() { 2166 RenderWidgetHostImpl::GetParentNativeViewAccessible() {
2163 return delegate_ ? delegate_->GetParentNativeViewAccessible() : NULL; 2167 return delegate_ ? delegate_->GetParentNativeViewAccessible() : NULL;
2164 } 2168 }
2165 #endif 2169 #endif
2166 2170
2167 SkColorType RenderWidgetHostImpl::PreferredReadbackFormat() { 2171 SkColorType RenderWidgetHostImpl::PreferredReadbackFormat() {
2168 if (view_) 2172 if (view_)
2169 return view_->PreferredReadbackFormat(); 2173 return view_->PreferredReadbackFormat();
2170 return kN32_SkColorType; 2174 return kN32_SkColorType;
2171 } 2175 }
2172 2176
2173 } // namespace content 2177 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698