OLD | NEW |
(Empty) | |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef CC_BLINK_BLINK_LAYER_DEBUG_INFO_H_ |
| 6 #define CC_BLINK_BLINK_LAYER_DEBUG_INFO_H_ |
| 7 |
| 8 #include <string> |
| 9 #include <vector> |
| 10 |
| 11 #include "base/memory/scoped_ptr.h" |
| 12 #include "base/threading/thread_checker.h" |
| 13 #include "cc/debug/layer_debug_info.h" |
| 14 |
| 15 namespace cc { |
| 16 struct DebugRect; |
| 17 } |
| 18 |
| 19 namespace blink { |
| 20 class WebGraphicsLayerDebugInfo; |
| 21 } |
| 22 |
| 23 namespace cc_blink { |
| 24 |
| 25 class BlinkLayerDebugInfo : public cc::LayerDebugInfo { |
| 26 public: |
| 27 // This object takes ownership of the debug_info object. |
| 28 explicit BlinkLayerDebugInfo(blink::WebGraphicsLayerDebugInfo* debug_info); |
| 29 |
| 30 virtual void AppendAsTraceFormat(std::string* out) const OVERRIDE; |
| 31 virtual std::vector<cc::DebugRect> GetInvalidationRects( |
| 32 cc::Layer*) const OVERRIDE; |
| 33 |
| 34 private: |
| 35 virtual ~BlinkLayerDebugInfo(); |
| 36 |
| 37 scoped_ptr<blink::WebGraphicsLayerDebugInfo> debug_info_; |
| 38 base::ThreadChecker thread_checker_; |
| 39 }; |
| 40 |
| 41 } // namespace cc_blink |
| 42 |
| 43 #endif // CC_BLINK_BLINK_LAYER_DEBUG_INFO_H_ |
OLD | NEW |