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

Unified Diff: cc/blink/blink_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/blink/BUILD.gn ('k') | cc/blink/blink_layer_debug_info.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/blink/blink_layer_debug_info.h
diff --git a/cc/blink/blink_layer_debug_info.h b/cc/blink/blink_layer_debug_info.h
new file mode 100644
index 0000000000000000000000000000000000000000..51f47fbc058a5eb5b8ca2108bb4bcf8fc039acdb
--- /dev/null
+++ b/cc/blink/blink_layer_debug_info.h
@@ -0,0 +1,43 @@
+// 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_BLINK_BLINK_LAYER_DEBUG_INFO_H_
+#define CC_BLINK_BLINK_LAYER_DEBUG_INFO_H_
+
+#include <string>
+#include <vector>
+
+#include "base/memory/scoped_ptr.h"
+#include "base/threading/thread_checker.h"
+#include "cc/debug/layer_debug_info.h"
+
+namespace cc {
+struct DebugRect;
+}
+
+namespace blink {
+class WebGraphicsLayerDebugInfo;
+}
+
+namespace cc_blink {
+
+class BlinkLayerDebugInfo : public cc::LayerDebugInfo {
+ public:
+ // This object takes ownership of the debug_info object.
+ explicit BlinkLayerDebugInfo(blink::WebGraphicsLayerDebugInfo* debug_info);
+
+ virtual void AppendAsTraceFormat(std::string* out) const OVERRIDE;
+ virtual std::vector<cc::DebugRect> GetInvalidationRects(
+ cc::Layer*) const OVERRIDE;
+
+ private:
+ virtual ~BlinkLayerDebugInfo();
+
+ scoped_ptr<blink::WebGraphicsLayerDebugInfo> debug_info_;
+ base::ThreadChecker thread_checker_;
+};
+
+} // namespace cc_blink
+
+#endif // CC_BLINK_BLINK_LAYER_DEBUG_INFO_H_
« no previous file with comments | « cc/blink/BUILD.gn ('k') | cc/blink/blink_layer_debug_info.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698