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

Unified Diff: cc/single_thread_proxy.cc

Issue 12096112: [cc] Trace detailed tile info when --trace-all-rendered-frames (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebased Created 7 years, 10 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: cc/single_thread_proxy.cc
diff --git a/cc/single_thread_proxy.cc b/cc/single_thread_proxy.cc
index 40b7ad2019677ff864d42c238e8f7b056bc63b71..1301355238382193e31001ec65177f698221ca64 100644
--- a/cc/single_thread_proxy.cc
+++ b/cc/single_thread_proxy.cc
@@ -347,6 +347,20 @@ void SingleThreadProxy::compositeImmediately()
}
}
+scoped_ptr<base::Value> SingleThreadProxy::asValue() const
+{
+ scoped_ptr<base::DictionaryValue> state(new base::DictionaryValue());
+ {
+ // The following line casts away const modifiers because it is just
+ // setting debug state. We still want the asValue() function and its
+ // call chain to be const throughout.
+ DebugScopedSetImplThread impl(const_cast<SingleThreadProxy*>(this));
+
+ state->Set("layer_tree_host_impl", m_layerTreeHostImpl->asValue().release());
+ }
+ return state.PassAs<base::Value>();
+}
+
void SingleThreadProxy::forceSerializeOnSwapBuffers()
{
{
« cc/picture_layer_tiling.cc ('K') | « cc/single_thread_proxy.h ('k') | cc/switches.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698