Index: ui/compositor/layer.cc |
diff --git a/ui/compositor/layer.cc b/ui/compositor/layer.cc |
index 83912f30f9aed0ebbf60e7d7977a8ae4af9a8e6d..c81da9c8095e43a3b8f95121450fbd4c3387fdc1 100644 |
--- a/ui/compositor/layer.cc |
+++ b/ui/compositor/layer.cc |
@@ -733,22 +733,23 @@ void Layer::SetForceRenderSurface(bool force) { |
cc_layer_->SetForceRenderSurface(force_render_surface_); |
} |
-class LayerDebugInfo : public base::debug::ConvertableToTraceFormat { |
+class UILayerDebugInfo : public cc::LayerDebugInfo { |
public: |
- explicit LayerDebugInfo(std::string name) : name_(name) { } |
+ explicit UILayerDebugInfo(std::string name) : name_(name) {} |
virtual void AppendAsTraceFormat(std::string* out) const OVERRIDE { |
base::DictionaryValue dictionary; |
dictionary.SetString("layer_name", name_); |
base::JSONWriter::Write(&dictionary, out); |
} |
+ virtual bool IncludesFirstPaintInvalidation() const OVERRIDE { return false; } |
private: |
- virtual ~LayerDebugInfo() { } |
+ virtual ~UILayerDebugInfo() {} |
std::string name_; |
}; |
-scoped_refptr<base::debug::ConvertableToTraceFormat> Layer::TakeDebugInfo() { |
- return new LayerDebugInfo(name_); |
+scoped_refptr<cc::LayerDebugInfo> Layer::TakeDebugInfo() { |
+ return new UILayerDebugInfo(name_); |
} |
void Layer::OnAnimationStarted(const cc::AnimationEvent& event) { |