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

Unified Diff: ui/compositor/layer.cc

Issue 474783002: HUD: Show first paint invalidation in red (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: update only when needed Created 6 years, 4 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
« cc/blink/blink_layer_debug_info.h ('K') | « ui/compositor/layer.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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) {
« cc/blink/blink_layer_debug_info.h ('K') | « ui/compositor/layer.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698