Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 1869 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1880 break; | 1880 break; |
| 1881 } | 1881 } |
| 1882 } | 1882 } |
| 1883 } | 1883 } |
| 1884 | 1884 |
| 1885 void RenderWidget::GetRenderingStats(WebKit::WebRenderingStats& stats) const { | 1885 void RenderWidget::GetRenderingStats(WebKit::WebRenderingStats& stats) const { |
| 1886 webwidget()->renderingStats(stats); | 1886 webwidget()->renderingStats(stats); |
| 1887 stats.numAnimationFrames += software_stats_.numAnimationFrames; | 1887 stats.numAnimationFrames += software_stats_.numAnimationFrames; |
| 1888 stats.numFramesSentToScreen += software_stats_.numFramesSentToScreen; | 1888 stats.numFramesSentToScreen += software_stats_.numFramesSentToScreen; |
| 1889 stats.totalPaintTimeInSeconds += software_stats_.totalPaintTimeInSeconds; | 1889 stats.totalPaintTimeInSeconds += software_stats_.totalPaintTimeInSeconds; |
| 1890 stats.totalPixelsPainted += software_stats_.totalPixelsPainted; | |
| 1891 stats.totalPixelsRasterized += software_stats_.totalPixelsRasterized; | |
|
nduca
2012/11/06 04:18:23
are you tracking software mode rasterization time
hartmanng
2012/11/06 21:53:16
I am now.
| |
| 1890 } | 1892 } |
| 1891 | 1893 |
| 1892 bool RenderWidget::GetGpuRenderingStats(GpuRenderingStats* stats) const { | 1894 bool RenderWidget::GetGpuRenderingStats(GpuRenderingStats* stats) const { |
| 1893 GpuChannelHost* gpu_channel = RenderThreadImpl::current()->GetGpuChannel(); | 1895 GpuChannelHost* gpu_channel = RenderThreadImpl::current()->GetGpuChannel(); |
| 1894 if (!gpu_channel) | 1896 if (!gpu_channel) |
| 1895 return false; | 1897 return false; |
| 1896 | 1898 |
| 1897 return gpu_channel->CollectRenderingStatsForSurface(surface_id(), stats); | 1899 return gpu_channel->CollectRenderingStatsForSurface(surface_id(), stats); |
| 1898 } | 1900 } |
| 1899 | 1901 |
| (...skipping 18 matching lines...) Expand all Loading... | |
| 1918 | 1920 |
| 1919 bool RenderWidget::WillHandleMouseEvent(const WebKit::WebMouseEvent& event) { | 1921 bool RenderWidget::WillHandleMouseEvent(const WebKit::WebMouseEvent& event) { |
| 1920 return false; | 1922 return false; |
| 1921 } | 1923 } |
| 1922 | 1924 |
| 1923 bool RenderWidget::WebWidgetHandlesCompositorScheduling() const { | 1925 bool RenderWidget::WebWidgetHandlesCompositorScheduling() const { |
| 1924 return false; | 1926 return false; |
| 1925 } | 1927 } |
| 1926 | 1928 |
| 1927 } // namespace content | 1929 } // namespace content |
| OLD | NEW |