| 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 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 77 | 77 |
| 78 // Puts backbuffer onscreen. | 78 // Puts backbuffer onscreen. |
| 79 virtual void SwapBuffers(CompositorFrameMetadata metadata) = 0; | 79 virtual void SwapBuffers(CompositorFrameMetadata metadata) = 0; |
| 80 virtual void ReclaimResources(const ReturnedResourceArray& resources) {} | 80 virtual void ReclaimResources(const ReturnedResourceArray& resources) {} |
| 81 | 81 |
| 82 bool visible() const { return visible_; } | 82 bool visible() const { return visible_; } |
| 83 void SetVisible(bool visible); | 83 void SetVisible(bool visible); |
| 84 | 84 |
| 85 protected: | 85 protected: |
| 86 Renderer(RendererClient* client, const RendererSettings* settings) | 86 Renderer(RendererClient* client, const RendererSettings* settings) |
| 87 : client_(client), settings_(settings), visible_(true) {} | 87 : client_(client), settings_(settings), visible_(false) {} |
| 88 | 88 |
| 89 virtual void DidChangeVisibility() = 0; | 89 virtual void DidChangeVisibility() = 0; |
| 90 | 90 |
| 91 RendererClient* client_; | 91 RendererClient* client_; |
| 92 const RendererSettings* settings_; | 92 const RendererSettings* settings_; |
| 93 bool visible_; | 93 bool visible_; |
| 94 | 94 |
| 95 private: | 95 private: |
| 96 DISALLOW_COPY_AND_ASSIGN(Renderer); | 96 DISALLOW_COPY_AND_ASSIGN(Renderer); |
| 97 }; | 97 }; |
| 98 | 98 |
| 99 } // namespace cc | 99 } // namespace cc |
| 100 | 100 |
| 101 #endif // CC_OUTPUT_RENDERER_H_ | 101 #endif // CC_OUTPUT_RENDERER_H_ |
| OLD | NEW |