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_DELEGATING_RENDERER_H_ | 5 #ifndef CC_OUTPUT_DELEGATING_RENDERER_H_ |
6 #define CC_OUTPUT_DELEGATING_RENDERER_H_ | 6 #define CC_OUTPUT_DELEGATING_RENDERER_H_ |
7 | 7 |
8 #include "base/memory/scoped_ptr.h" | 8 #include "base/memory/scoped_ptr.h" |
9 #include "cc/base/cc_export.h" | 9 #include "cc/base/cc_export.h" |
10 #include "cc/output/renderer.h" | 10 #include "cc/output/renderer.h" |
(...skipping 10 matching lines...) Expand all Loading... |
21 WebKit::WebGraphicsContext3D::WebGraphicsContextLostCallback) { | 21 WebKit::WebGraphicsContext3D::WebGraphicsContextLostCallback) { |
22 public: | 22 public: |
23 static scoped_ptr<DelegatingRenderer> Create( | 23 static scoped_ptr<DelegatingRenderer> Create( |
24 RendererClient* client, | 24 RendererClient* client, |
25 OutputSurface* output_surface, | 25 OutputSurface* output_surface, |
26 ResourceProvider* resource_provider); | 26 ResourceProvider* resource_provider); |
27 virtual ~DelegatingRenderer(); | 27 virtual ~DelegatingRenderer(); |
28 | 28 |
29 virtual const RendererCapabilities& Capabilities() const OVERRIDE; | 29 virtual const RendererCapabilities& Capabilities() const OVERRIDE; |
30 | 30 |
31 virtual void DrawFrame(RenderPassList& render_passes_in_draw_order) OVERRIDE; | 31 virtual void DrawFrame(RenderPassList* render_passes_in_draw_order) OVERRIDE; |
32 | 32 |
33 virtual void Finish() OVERRIDE {} | 33 virtual void Finish() OVERRIDE {} |
34 | 34 |
35 virtual bool SwapBuffers() OVERRIDE; | 35 virtual bool SwapBuffers() OVERRIDE; |
36 | 36 |
37 virtual void GetFramebufferPixels(void* pixels, gfx::Rect rect) OVERRIDE; | 37 virtual void GetFramebufferPixels(void* pixels, gfx::Rect rect) OVERRIDE; |
38 | 38 |
39 virtual void ReceiveCompositorFrameAck(const CompositorFrameAck&) OVERRIDE; | 39 virtual void ReceiveCompositorFrameAck(const CompositorFrameAck&) OVERRIDE; |
40 | 40 |
41 virtual bool IsContextLost() OVERRIDE; | 41 virtual bool IsContextLost() OVERRIDE; |
(...skipping 17 matching lines...) Expand all Loading... |
59 ResourceProvider* resource_provider_; | 59 ResourceProvider* resource_provider_; |
60 RendererCapabilities capabilities_; | 60 RendererCapabilities capabilities_; |
61 bool visible_; | 61 bool visible_; |
62 | 62 |
63 DISALLOW_COPY_AND_ASSIGN(DelegatingRenderer); | 63 DISALLOW_COPY_AND_ASSIGN(DelegatingRenderer); |
64 }; | 64 }; |
65 | 65 |
66 } // namespace cc | 66 } // namespace cc |
67 | 67 |
68 #endif // CC_OUTPUT_DELEGATING_RENDERER_H_ | 68 #endif // CC_OUTPUT_DELEGATING_RENDERER_H_ |
OLD | NEW |