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

Unified Diff: content/renderer/render_widget.h

Issue 14931012: Add support for latency measurement to Telemetry smoothness benchmarks. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/renderer/gpu/gpu_benchmarking_extension.cc ('k') | content/renderer/render_widget.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/render_widget.h
diff --git a/content/renderer/render_widget.h b/content/renderer/render_widget.h
index 24fa7f3d14a285160babc686039ec73c6744e6e9..731e85389d13a2155557855d4e149b424c336e56 100644
--- a/content/renderer/render_widget.h
+++ b/content/renderer/render_widget.h
@@ -16,6 +16,7 @@
#include "base/time.h"
#include "base/timer.h"
#include "cc/debug/rendering_stats.h"
+#include "content/common/browser_rendering_stats.h"
#include "content/common/content_export.h"
#include "content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.h"
#include "content/renderer/paint_aggregator.h"
@@ -174,6 +175,8 @@ class CONTENT_EXPORT RenderWidget
// This call is relatively expensive as it blocks on the GPU process
bool GetGpuRenderingStats(GpuRenderingStats*) const;
+ void GetBrowserRenderingStats(BrowserRenderingStats* stats);
+
RenderWidgetCompositor* compositor() const;
virtual scoped_ptr<cc::OutputSurface> CreateOutputSurface();
@@ -331,6 +334,7 @@ class CONTENT_EXPORT RenderWidget
void OnShowImeIfNeeded();
#endif
void OnSnapshot(const gfx::Rect& src_subrect);
+ void OnSetBrowserRenderingStats(const BrowserRenderingStats& stats);
// Notify the compositor about a change in viewport size. This should be
// used only with auto resize mode WebWidgets, as normal WebWidgets should
@@ -708,6 +712,10 @@ class CONTENT_EXPORT RenderWidget
// Specifies whether overscroll notifications are forwarded to the host.
bool overscroll_notifications_enabled_;
+ // The last set of rendering stats received from the browser. This is only
+ // received when using the --enable-gpu-benchmarking flag.
+ BrowserRenderingStats browser_rendering_stats_;
+
base::WeakPtrFactory<RenderWidget> weak_ptr_factory_;
DISALLOW_COPY_AND_ASSIGN(RenderWidget);
« no previous file with comments | « content/renderer/gpu/gpu_benchmarking_extension.cc ('k') | content/renderer/render_widget.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698