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

Unified Diff: cc/debug/layer_debug_info.h

Issue 474783002: HUD: Show first paint invalidation in red (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: compilefix Created 6 years, 3 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
« no previous file with comments | « cc/debug/debug_rect_history.cc ('k') | cc/debug/layer_debug_info.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/debug/layer_debug_info.h
diff --git a/cc/debug/layer_debug_info.h b/cc/debug/layer_debug_info.h
new file mode 100644
index 0000000000000000000000000000000000000000..215b383fbe4b2506cd6be2264090a30a5f671c52
--- /dev/null
+++ b/cc/debug/layer_debug_info.h
@@ -0,0 +1,29 @@
+// Copyright 2014 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CC_DEBUG_LAYER_DEBUG_INFO_H_
+#define CC_DEBUG_LAYER_DEBUG_INFO_H_
+
+#include <string>
+#include <vector>
+
+#include "base/debug/trace_event_impl.h"
+#include "cc/base/cc_export.h"
+
+namespace cc {
+
+struct DebugRect;
+class Layer;
+
+class CC_EXPORT LayerDebugInfo : public base::debug::ConvertableToTraceFormat {
+ public:
+ virtual std::vector<DebugRect> GetInvalidationRects(Layer* layer) const;
+
+ protected:
+ virtual ~LayerDebugInfo() {}
+};
+
+} // namespace cc
+
+#endif // CC_DEBUG_LAYER_DEBUG_INFO_H_
« no previous file with comments | « cc/debug/debug_rect_history.cc ('k') | cc/debug/layer_debug_info.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698