| 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/quads/render_pass.h" | 10 #include "cc/quads/render_pass.h" |
| (...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 65 virtual void GetFramebufferPixels(void* pixels, gfx::Rect rect) = 0; | 65 virtual void GetFramebufferPixels(void* pixels, gfx::Rect rect) = 0; |
| 66 | 66 |
| 67 virtual bool IsContextLost(); | 67 virtual bool IsContextLost(); |
| 68 | 68 |
| 69 virtual void SetVisible(bool visible) = 0; | 69 virtual void SetVisible(bool visible) = 0; |
| 70 | 70 |
| 71 virtual void SendManagedMemoryStats(size_t bytes_visible, | 71 virtual void SendManagedMemoryStats(size_t bytes_visible, |
| 72 size_t bytes_visible_and_nearby, | 72 size_t bytes_visible_and_nearby, |
| 73 size_t bytes_allocated) = 0; | 73 size_t bytes_allocated) = 0; |
| 74 | 74 |
| 75 virtual void SetDiscardBackBufferWhenNotVisible(bool discard) = 0; | |
| 76 | |
| 77 protected: | 75 protected: |
| 78 explicit Renderer(RendererClient* client, const LayerTreeSettings* settings) | 76 explicit Renderer(RendererClient* client, const LayerTreeSettings* settings) |
| 79 : client_(client), settings_(settings) {} | 77 : client_(client), settings_(settings) {} |
| 80 | 78 |
| 81 RendererClient* client_; | 79 RendererClient* client_; |
| 82 const LayerTreeSettings* settings_; | 80 const LayerTreeSettings* settings_; |
| 83 | 81 |
| 84 private: | 82 private: |
| 85 DISALLOW_COPY_AND_ASSIGN(Renderer); | 83 DISALLOW_COPY_AND_ASSIGN(Renderer); |
| 86 }; | 84 }; |
| 87 | 85 |
| 88 } // namespace cc | 86 } // namespace cc |
| 89 | 87 |
| 90 #endif // CC_OUTPUT_RENDERER_H_ | 88 #endif // CC_OUTPUT_RENDERER_H_ |
| OLD | NEW |