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 | |
10 #include "base/memory/scoped_ptr.h" | |
11 #include "base/threading/thread_checker.h" | |
12 #include "cc/layers/layer_client.h" | |
13 | |
14 namespace blink { | |
15 class WebGraphicsLayerDebugInfo; | |
16 } | |
17 | |
18 namespace cc_blink { | |
19 | |
20 class BlinkLayerDebugInfo : public cc::LayerDebugInfo { | |
chrishtr
2014/08/26 18:53:06
Why do you need this interface?
| |
21 public: | |
22 // This object takes ownership of the debug_info object. | |
23 explicit BlinkLayerDebugInfo(blink::WebGraphicsLayerDebugInfo* debug_info); | |
24 | |
25 virtual void AppendAsTraceFormat(std::string* out) const OVERRIDE; | |
26 virtual bool IncludesFirstPaintInvalidation() const OVERRIDE; | |
27 | |
28 private: | |
29 virtual ~BlinkLayerDebugInfo(); | |
30 | |
31 scoped_ptr<blink::WebGraphicsLayerDebugInfo> debug_info_; | |
32 base::ThreadChecker thread_checker_; | |
33 }; | |
34 | |
35 } // namespace cc_blink | |
36 | |
37 #endif // CC_BLINK_BLINK_LAYER_DEBUG_INFO_H_ | |
OLD | NEW |