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 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
49 | 49 |
50 virtual void ViewportChanged() {} | 50 virtual void ViewportChanged() {} |
51 virtual void ReceiveCompositorFrameAck(const CompositorFrameAck& ack) {} | 51 virtual void ReceiveCompositorFrameAck(const CompositorFrameAck& ack) {} |
52 | 52 |
53 virtual void DecideRenderPassAllocationsForFrame( | 53 virtual void DecideRenderPassAllocationsForFrame( |
54 const RenderPassList& render_passes_in_draw_order) {} | 54 const RenderPassList& render_passes_in_draw_order) {} |
55 virtual bool HaveCachedResourcesForRenderPassId(RenderPass::Id id) const; | 55 virtual bool HaveCachedResourcesForRenderPassId(RenderPass::Id id) const; |
56 | 56 |
57 // This passes ownership of the render passes to the renderer. It should | 57 // This passes ownership of the render passes to the renderer. It should |
58 // consume them, and empty the list. | 58 // consume them, and empty the list. |
59 virtual void DrawFrame(RenderPassList& render_passes_in_draw_order) = 0; | 59 virtual void DrawFrame(RenderPassList* render_passes_in_draw_order) = 0; |
60 | 60 |
61 // Waits for rendering to finish. | 61 // Waits for rendering to finish. |
62 virtual void Finish() = 0; | 62 virtual void Finish() = 0; |
63 | 63 |
64 virtual void DoNoOp() {} | 64 virtual void DoNoOp() {} |
65 | 65 |
66 // Puts backbuffer onscreen. | 66 // Puts backbuffer onscreen. |
67 virtual bool SwapBuffers() = 0; | 67 virtual bool SwapBuffers() = 0; |
68 | 68 |
69 virtual void GetFramebufferPixels(void* pixels, gfx::Rect rect) = 0; | 69 virtual void GetFramebufferPixels(void* pixels, gfx::Rect rect) = 0; |
(...skipping 11 matching lines...) Expand all Loading... |
81 : client_(client) {} | 81 : client_(client) {} |
82 | 82 |
83 RendererClient* client_; | 83 RendererClient* client_; |
84 | 84 |
85 DISALLOW_COPY_AND_ASSIGN(Renderer); | 85 DISALLOW_COPY_AND_ASSIGN(Renderer); |
86 }; | 86 }; |
87 | 87 |
88 } | 88 } |
89 | 89 |
90 #endif // CC_OUTPUT_RENDERER_H_ | 90 #endif // CC_OUTPUT_RENDERER_H_ |
OLD | NEW |