Chromium Code Reviews| Index: cc/layers/layer_client.h |
| diff --git a/cc/layers/layer_client.h b/cc/layers/layer_client.h |
| index 73c0fd2514b3081a524c5704552f17790d71a8f0..12ffd4fbf7e8a40ee6eca311783b35184ec508e6 100644 |
| --- a/cc/layers/layer_client.h |
| +++ b/cc/layers/layer_client.h |
| @@ -9,12 +9,23 @@ |
| #include "cc/base/cc_export.h" |
| +namespace base { |
| +namespace debug { |
| +class ConvertableToTraceFormat; |
| +} |
| +} |
| + |
| namespace cc { |
| class CC_EXPORT LayerClient { |
| public: |
| virtual std::string DebugName() = 0; |
| + // Returns a pointer to a debug info object, if one has been computed. |
| + // If not, returns NULL. If the returned pointer is non-NULL, the caller takes |
|
danakj
2013/12/02 23:37:42
Why is this returning a raw pointer instead of a s
chrishtr_gmail.com
2013/12/02 23:55:19
1. Consistency w/the Blink-side method, which need
danakj
2013/12/02 23:57:28
Note, I would like this to be a scoped_ptr, not a
chrishtr_gmail.com
2013/12/03 00:00:11
I see.
Hmm. Does scoped_ptr work in this case? C
chrishtr_gmail.com
2013/12/03 00:02:22
Indeed it does break:
../../base/memory/scoped_p
|
| + // ownership of the pointer. |
| + virtual base::debug::ConvertableToTraceFormat* TakeDebugInfo() = 0; |
| + |
| protected: |
| virtual ~LayerClient() {} |
| }; |