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

Unified Diff: webkit/compositor_bindings/web_layer_tree_view_impl.h

Issue 11189037: toggle FPS counter in compositor (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: plumbing 'showFPSCounter' through HUD, added 'createHUDLayerIfNeeded' Created 8 years, 2 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
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 f9b9e11286c116558652dfdec06261a0a7038be3..7c400419a19378179b2940b69a34223c1bdaa97f 100644
--- a/webkit/compositor_bindings/web_layer_tree_view_impl.h
+++ b/webkit/compositor_bindings/web_layer_tree_view_impl.h
@@ -47,6 +47,11 @@ public:
virtual bool compositeAndReadback(void *pixels, const WebRect&) OVERRIDE;
virtual void finishAllRendering() OVERRIDE;
virtual void renderingStats(WebRenderingStats&) const OVERRIDE;
+
+ // NOTE: not marked OVERRIDE to avoid dependency till associated WebKit patch is landed: https://bugs.webkit.org/show_bug.cgi?id=99660
danakj 2012/10/23 15:19:53 Don't worry about adding OVERRIDE to new methods h
+ virtual void setShowFPSCounter(bool show);
+ virtual bool hasFontAtlas();
+
virtual void setFontAtlas(SkBitmap, WebRect asciiToRectTable[128], int fontHeight) OVERRIDE;
virtual void loseCompositorContext(int numTimes) OVERRIDE;
@@ -68,6 +73,7 @@ public:
private:
WebLayerTreeViewClient* m_client;
scoped_ptr<cc::CCLayerTreeHost> m_layerTreeHost;
+ bool m_hasFontAtlas;
danakj 2012/10/23 15:19:53 How about moving this piece of state into CCLayerT
};
} // namespace WebKit

Powered by Google App Engine
This is Rietveld 408576698