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 <memory> | 8 #include <memory> |
9 | 9 |
10 #include "base/macros.h" | 10 #include "base/macros.h" |
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
80 | 80 |
81 // Puts backbuffer onscreen. | 81 // Puts backbuffer onscreen. |
82 virtual void SwapBuffers(CompositorFrameMetadata metadata) = 0; | 82 virtual void SwapBuffers(CompositorFrameMetadata metadata) = 0; |
83 virtual void ReclaimResources(const ReturnedResourceArray& resources) {} | 83 virtual void ReclaimResources(const ReturnedResourceArray& resources) {} |
84 | 84 |
85 bool visible() const { return visible_; } | 85 bool visible() const { return visible_; } |
86 void SetVisible(bool visible); | 86 void SetVisible(bool visible); |
87 | 87 |
88 protected: | 88 protected: |
89 Renderer(RendererClient* client, const RendererSettings* settings) | 89 Renderer(RendererClient* client, const RendererSettings* settings) |
90 : client_(client), settings_(settings), visible_(true) {} | 90 : client_(client), settings_(settings), visible_(false) {} |
danakj
2016/08/10 23:05:26
This is a change in the Renderer, I guess it defau
| |
91 | 91 |
92 virtual void DidChangeVisibility() = 0; | 92 virtual void DidChangeVisibility() = 0; |
93 | 93 |
94 RendererClient* client_; | 94 RendererClient* client_; |
95 const RendererSettings* settings_; | 95 const RendererSettings* settings_; |
96 bool visible_; | 96 bool visible_; |
97 | 97 |
98 private: | 98 private: |
99 DISALLOW_COPY_AND_ASSIGN(Renderer); | 99 DISALLOW_COPY_AND_ASSIGN(Renderer); |
100 }; | 100 }; |
101 | 101 |
102 } // namespace cc | 102 } // namespace cc |
103 | 103 |
104 #endif // CC_OUTPUT_RENDERER_H_ | 104 #endif // CC_OUTPUT_RENDERER_H_ |
OLD | NEW |