Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(180)

Side by Side Diff: cc/layers/layer_client.h

Issue 61883006: Compositor thread plumbing for layout rectangle debug info. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Implemented TakeDebugInfo in ui::Layer. Created 7 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « cc/layers/layer.cc ('k') | cc/layers/layer_impl.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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_
OLDNEW
« no previous file with comments | « cc/layers/layer.cc ('k') | cc/layers/layer_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698