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/compositor_frame.h" |
10 #include "cc/output/renderer.h" | 11 #include "cc/output/renderer.h" |
11 #include "third_party/WebKit/Source/Platform/chromium/public/WebGraphicsContext3
D.h" | 12 #include "third_party/WebKit/Source/Platform/chromium/public/WebGraphicsContext3
D.h" |
12 | 13 |
13 namespace cc { | 14 namespace cc { |
14 | 15 |
15 class OutputSurface; | 16 class OutputSurface; |
16 class ResourceProvider; | 17 class ResourceProvider; |
17 | 18 |
18 class CC_EXPORT DelegatingRenderer : public Renderer { | 19 class CC_EXPORT DelegatingRenderer : public Renderer { |
19 public: | 20 public: |
(...skipping 25 matching lines...) Expand all Loading... |
45 | 46 |
46 private: | 47 private: |
47 DelegatingRenderer(RendererClient* client, | 48 DelegatingRenderer(RendererClient* client, |
48 OutputSurface* output_surface, | 49 OutputSurface* output_surface, |
49 ResourceProvider* resource_provider); | 50 ResourceProvider* resource_provider); |
50 bool Initialize(); | 51 bool Initialize(); |
51 | 52 |
52 OutputSurface* output_surface_; | 53 OutputSurface* output_surface_; |
53 ResourceProvider* resource_provider_; | 54 ResourceProvider* resource_provider_; |
54 RendererCapabilities capabilities_; | 55 RendererCapabilities capabilities_; |
| 56 CompositorFrame frame_for_swap_buffers_; |
55 bool visible_; | 57 bool visible_; |
56 RenderPassList render_passes_for_swap_buffers_; | |
57 | 58 |
58 DISALLOW_COPY_AND_ASSIGN(DelegatingRenderer); | 59 DISALLOW_COPY_AND_ASSIGN(DelegatingRenderer); |
59 }; | 60 }; |
60 | 61 |
61 } // namespace cc | 62 } // namespace cc |
62 | 63 |
63 #endif // CC_OUTPUT_DELEGATING_RENDERER_H_ | 64 #endif // CC_OUTPUT_DELEGATING_RENDERER_H_ |
OLD | NEW |