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..b11e72ea08073c29828dd99d8815214345c79d79 |
--- /dev/null |
+++ b/cc/blink/blink_layer_debug_info.h |
@@ -0,0 +1,37 @@ |
+// 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 "base/memory/scoped_ptr.h" |
+#include "base/threading/thread_checker.h" |
+#include "cc/layers/layer_client.h" |
+ |
+namespace blink { |
+class WebGraphicsLayerDebugInfo; |
+} |
+ |
+namespace cc_blink { |
+ |
+class BlinkLayerDebugInfo : public cc::LayerDebugInfo { |
chrishtr
2014/08/26 18:53:06
Why do you need this interface?
|
+ 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 bool IncludesFirstPaintInvalidation() 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_ |