OLD | NEW |
---|---|
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef CC_LAYERS_LAYER_CLIENT_H_ | 5 #ifndef CC_LAYERS_LAYER_CLIENT_H_ |
6 #define CC_LAYERS_LAYER_CLIENT_H_ | 6 #define CC_LAYERS_LAYER_CLIENT_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "cc/base/cc_export.h" | 10 #include "cc/base/cc_export.h" |
11 | 11 |
12 namespace base { | |
13 namespace debug { | |
14 class ConvertableToTraceFormat; | |
15 } | |
16 } | |
17 | |
12 namespace cc { | 18 namespace cc { |
13 | 19 |
14 class CC_EXPORT LayerClient { | 20 class CC_EXPORT LayerClient { |
15 public: | 21 public: |
16 virtual std::string DebugName() = 0; | 22 virtual std::string DebugName() = 0; |
17 | 23 |
24 // Returns a pointer to a debug info object, if one has been computed. | |
25 // 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
| |
26 // ownership of the pointer. | |
27 virtual base::debug::ConvertableToTraceFormat* TakeDebugInfo() = 0; | |
28 | |
18 protected: | 29 protected: |
19 virtual ~LayerClient() {} | 30 virtual ~LayerClient() {} |
20 }; | 31 }; |
21 | 32 |
22 } // namespace cc | 33 } // namespace cc |
23 | 34 |
24 #endif // CC_LAYERS_LAYER_CLIENT_H_ | 35 #endif // CC_LAYERS_LAYER_CLIENT_H_ |
OLD | NEW |