| Index: content/renderer/render_widget.h
|
| diff --git a/content/renderer/render_widget.h b/content/renderer/render_widget.h
|
| index 28d961d7ecf4f529008b61d6e1d838593d449a92..641d9a88266c79cb989787a52588cba58f1fc0ad 100644
|
| --- a/content/renderer/render_widget.h
|
| +++ b/content/renderer/render_widget.h
|
| @@ -14,6 +14,7 @@
|
| #include "base/memory/scoped_ptr.h"
|
| #include "base/time.h"
|
| #include "base/timer.h"
|
| +#include "cc/rendering_stats.h"
|
| #include "content/common/content_export.h"
|
| #include "content/renderer/paint_aggregator.h"
|
| #include "ipc/ipc_listener.h"
|
| @@ -155,7 +156,11 @@ class CONTENT_EXPORT RenderWidget
|
| // rendering, e.g. count of frames rendered, time spent painting.
|
| // This call is relatively expensive in threaded compositing mode,
|
| // as it blocks on the compositor thread.
|
| +#ifdef NOT_USING_WEB_RENDERING_STATS
|
| + void GetRenderingStats(cc::RenderingStats&) const;
|
| +#else
|
| void GetRenderingStats(WebKit::WebRenderingStats&) const;
|
| +#endif // NOT_USING_WEB_RENDERING_STATS
|
|
|
| // Fills in a GpuRenderingStats struct containing information about
|
| // GPU rendering, e.g. count of texture uploads performed, time spent
|
| @@ -592,7 +597,11 @@ class CONTENT_EXPORT RenderWidget
|
| bool has_disable_gpu_vsync_switch_;
|
| base::TimeTicks last_do_deferred_update_time_;
|
|
|
| +#ifdef NOT_USING_WEB_RENDERING_STATS
|
| + cc::RenderingStats software_stats_;
|
| +#else
|
| WebKit::WebRenderingStats software_stats_;
|
| +#endif // NOT_USING_WEB_RENDERING_STATS
|
|
|
| // UpdateRect parameters for the current compositing pass. This is used to
|
| // pass state between DoDeferredUpdate and OnSwapBuffersPosted.
|
|
|