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_OUTPUT_RENDERER_H_ | 5 #ifndef CC_OUTPUT_RENDERER_H_ |
6 #define CC_OUTPUT_RENDERER_H_ | 6 #define CC_OUTPUT_RENDERER_H_ |
7 | 7 |
8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
9 #include "cc/base/cc_export.h" | 9 #include "cc/base/cc_export.h" |
10 #include "cc/base/scoped_ptr_vector.h" | 10 #include "cc/base/scoped_ptr_vector.h" |
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
73 virtual void DoNoOp() {} | 73 virtual void DoNoOp() {} |
74 | 74 |
75 // Puts backbuffer onscreen. | 75 // Puts backbuffer onscreen. |
76 virtual void SwapBuffers(const CompositorFrameMetadata& metadata) = 0; | 76 virtual void SwapBuffers(const CompositorFrameMetadata& metadata) = 0; |
77 virtual void ReceiveSwapBuffersAck(const CompositorFrameAck& ack) {} | 77 virtual void ReceiveSwapBuffersAck(const CompositorFrameAck& ack) {} |
78 | 78 |
79 bool visible() const { return visible_; } | 79 bool visible() const { return visible_; } |
80 void SetVisible(bool visible); | 80 void SetVisible(bool visible); |
81 | 81 |
82 protected: | 82 protected: |
83 explicit Renderer(RendererClient* client, const LayerTreeSettings* settings) | 83 Renderer(RendererClient* client, const RendererSettings* settings) |
84 : client_(client), settings_(settings), visible_(true) {} | 84 : client_(client), settings_(settings), visible_(true) {} |
85 | 85 |
86 virtual void DidChangeVisibility() = 0; | 86 virtual void DidChangeVisibility() = 0; |
87 | 87 |
88 RendererClient* client_; | 88 RendererClient* client_; |
89 const LayerTreeSettings* settings_; | 89 const RendererSettings* settings_; |
90 bool visible_; | 90 bool visible_; |
91 | 91 |
92 private: | 92 private: |
93 DISALLOW_COPY_AND_ASSIGN(Renderer); | 93 DISALLOW_COPY_AND_ASSIGN(Renderer); |
94 }; | 94 }; |
95 | 95 |
96 } // namespace cc | 96 } // namespace cc |
97 | 97 |
98 #endif // CC_OUTPUT_RENDERER_H_ | 98 #endif // CC_OUTPUT_RENDERER_H_ |
OLD | NEW |