OLD | NEW |
---|---|
1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 2012 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_RENDER_PASS_SINK_H_ | 5 #ifndef CC_RENDER_PASS_SINK_H_ |
6 #define CC_RENDER_PASS_SINK_H_ | 6 #define CC_RENDER_PASS_SINK_H_ |
7 | 7 |
8 #include "base/memory/scoped_ptr.h" | 8 #include "base/memory/scoped_ptr.h" |
9 #include "cc/cc_export.h" | 9 #include "cc/cc_export.h" |
10 | 10 |
11 namespace cc { | 11 namespace cc { |
12 | 12 |
13 class RenderPass; | 13 class RenderPass; |
14 | 14 |
15 class CC_EXPORT RenderPassSink { | 15 class CC_EXPORT RenderPassSink { |
16 public: | 16 public: |
17 virtual void appendRenderPass(scoped_ptr<RenderPass>) = 0; | 17 virtual void appendRenderPass(scoped_ptr<RenderPass>) = 0; |
18 protected: | |
jar (doing other things)
2013/01/28 17:02:58
nit: Add white space line before line 18. .... if
| |
19 virtual ~RenderPassSink() { } | |
jamesr
2013/01/28 19:20:43
not sure this one is really necessary. nobody take
Paweł Hajdan Jr.
2013/01/28 19:55:49
That's why it's protected. This seems to be a conv
jamesr
2013/01/28 20:13:46
Protected and non-virtual seems like the right cho
Paweł Hajdan Jr.
2013/01/29 09:40:22
Alright, so we have agreed on protected. Good. :)
jar (doing other things)
2013/01/29 17:58:22
Simple rule of thumb: If you have any virtual func
jamesr
2013/01/29 18:52:20
Actually, I think this file is perfectly fine as-i
Paweł Hajdan Jr.
2013/01/30 10:00:28
Please see the bug and earlier comments. I removed
| |
18 }; | 20 }; |
19 | 21 |
20 } | 22 } |
21 #endif // CC_RENDER_PASS_SINK_H_ | 23 #endif // CC_RENDER_PASS_SINK_H_ |
OLD | NEW |