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_ |