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

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

Issue 10868048: Report texture upload time in renderingStats. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add surface_id to GpuChannelMsg_CollectRenderingStats and collect both global and surface specific … Created 8 years, 4 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 | Annotate | Revision Log
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 "base/bind.h" 7 #include "base/bind.h"
8 #include "base/command_line.h" 8 #include "base/command_line.h"
9 #include "base/debug/trace_event.h" 9 #include "base/debug/trace_event.h"
10 #include "base/logging.h" 10 #include "base/logging.h"
(...skipping 1799 matching lines...) Expand 10 before | Expand all | Expand 10 after
1810 void RenderWidget::CleanupWindowInPluginMoves(gfx::PluginWindowHandle window) { 1810 void RenderWidget::CleanupWindowInPluginMoves(gfx::PluginWindowHandle window) {
1811 for (WebPluginGeometryVector::iterator i = plugin_window_moves_.begin(); 1811 for (WebPluginGeometryVector::iterator i = plugin_window_moves_.begin();
1812 i != plugin_window_moves_.end(); ++i) { 1812 i != plugin_window_moves_.end(); ++i) {
1813 if (i->window == window) { 1813 if (i->window == window) {
1814 plugin_window_moves_.erase(i); 1814 plugin_window_moves_.erase(i);
1815 break; 1815 break;
1816 } 1816 }
1817 } 1817 }
1818 } 1818 }
1819 1819
1820 void RenderWidget::GetRenderingStats(WebKit::WebRenderingStats& stats) const { 1820 void RenderWidget::GetRenderingStats(WebKit::WebRenderingStats& stats) const {
apatrick_chromium 2012/08/28 20:07:06 WebKit::WebRenderingStats*
1821 webwidget()->renderingStats(stats); 1821 webwidget()->renderingStats(stats);
1822 stats.numAnimationFrames += software_stats_.numAnimationFrames; 1822 stats.numAnimationFrames += software_stats_.numAnimationFrames;
1823 stats.numFramesSentToScreen += software_stats_.numFramesSentToScreen; 1823 stats.numFramesSentToScreen += software_stats_.numFramesSentToScreen;
1824 stats.totalPaintTimeInSeconds += software_stats_.totalPaintTimeInSeconds; 1824 stats.totalPaintTimeInSeconds += software_stats_.totalPaintTimeInSeconds;
1825 } 1825 }
1826 1826
1827 void RenderWidget::GetGpuRenderingStats(
1828 content::GpuRenderingStats& stats) const {
apatrick_chromium 2012/08/28 20:07:06 Ditto
1829 RenderThreadImpl::current()->GetGpuChannel()->CollectRenderingStats(
1830 surface_id(), stats);
1831 }
1832
1827 void RenderWidget::BeginSmoothScroll( 1833 void RenderWidget::BeginSmoothScroll(
1828 bool down, 1834 bool down,
1829 bool scroll_far, 1835 bool scroll_far,
1830 const SmoothScrollCompletionCallback& callback) { 1836 const SmoothScrollCompletionCallback& callback) {
1831 DCHECK(!callback.is_null()); 1837 DCHECK(!callback.is_null());
1832 int id = next_smooth_scroll_gesture_id_++; 1838 int id = next_smooth_scroll_gesture_id_++;
1833 Send(new ViewHostMsg_BeginSmoothScroll(routing_id_, id, down, scroll_far)); 1839 Send(new ViewHostMsg_BeginSmoothScroll(routing_id_, id, down, scroll_far));
1834 pending_smooth_scroll_gestures_.insert(std::make_pair(id, callback)); 1840 pending_smooth_scroll_gestures_.insert(std::make_pair(id, callback));
1835 } 1841 }
1836 1842
1837 bool RenderWidget::WillHandleMouseEvent(const WebKit::WebMouseEvent& event) { 1843 bool RenderWidget::WillHandleMouseEvent(const WebKit::WebMouseEvent& event) {
1838 return false; 1844 return false;
1839 } 1845 }
1840 1846
1841 bool RenderWidget::WebWidgetHandlesCompositorScheduling() const { 1847 bool RenderWidget::WebWidgetHandlesCompositorScheduling() const {
1842 return false; 1848 return false;
1843 } 1849 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698