cc: Add lcd text / contents opaque to LayerImpl::AsValue

This will be useful for figuring out if/why certain layers get lcd text.

[email protected]

Review URL: https://codereview.chromium.org/27033006

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@228505 0039d316-1c4b-4281-b951-d872f2087c98
diff --git a/cc/layers/layer_impl.cc b/cc/layers/layer_impl.cc
index c1fb321..d42ec31 100644
--- a/cc/layers/layer_impl.cc
+++ b/cc/layers/layer_impl.cc
@@ -1298,6 +1298,9 @@
 
   if (clip_parent_)
     state->SetInteger("clip_parent", clip_parent_->id());
+
+  state->SetBoolean("can_use_lcd_text", can_use_lcd_text());
+  state->SetBoolean("contents_opaque", contents_opaque());
 }
 
 size_t LayerImpl::GPUMemoryUsageInBytes() const { return 0; }