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

Unified Diff: webkit/compositor_bindings/web_layer_tree_view_impl.h

Issue 11364221: Fixing RenderingStats vs WebRenderingStats mess (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 1 month 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/render_widget.cc ('k') | webkit/compositor_bindings/web_layer_tree_view_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/compositor_bindings/web_layer_tree_view_impl.h
diff --git a/webkit/compositor_bindings/web_layer_tree_view_impl.h b/webkit/compositor_bindings/web_layer_tree_view_impl.h
index 33c6eef4c5a2a6bdbed9746291d9fc84b0d7798e..f0441ab532e49ca0d0570fdeb5038582eb0ea8c0 100644
--- a/webkit/compositor_bindings/web_layer_tree_view_impl.h
+++ b/webkit/compositor_bindings/web_layer_tree_view_impl.h
@@ -8,6 +8,7 @@
#include "base/memory/scoped_ptr.h"
#include "cc/layer_tree_host_client.h"
#include "third_party/WebKit/Source/Platform/chromium/public/WebLayerTreeView.h"
+#include "third_party/WebKit/Source/Platform/chromium/public/WebRenderingStats.h"
namespace cc {
class LayerTreeHost;
@@ -49,7 +50,11 @@ public:
virtual bool compositeAndReadback(void *pixels, const WebRect&) OVERRIDE;
virtual void finishAllRendering() OVERRIDE;
virtual void setDeferCommits(bool deferCommits) OVERRIDE;
+#ifdef NOT_USING_WEB_RENDERING_STATS
+ virtual void renderingStats(void*) const OVERRIDE;
jamesr 2012/11/13 21:44:53 How is this better than downcasting?
+#else
virtual void renderingStats(WebRenderingStats&) const OVERRIDE;
+#endif // NOT_USING_WEB_RENDERING_STATS
virtual void setShowFPSCounter(bool show);
virtual void setFontAtlas(SkBitmap, WebRect asciiToRectTable[128], int fontHeight);
virtual void setFontAtlas(WebRect asciiToRectTable[128], const SkBitmap&, int fontHeight);
« no previous file with comments | « content/renderer/render_widget.cc ('k') | webkit/compositor_bindings/web_layer_tree_view_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698