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" | |
10 #include "cc/output/compositor_frame.h" | 9 #include "cc/output/compositor_frame.h" |
11 #include "cc/output/renderer.h" | 10 #include "cc/output/renderer.h" |
12 | 11 |
13 namespace cc { | 12 namespace cc { |
14 | 13 |
15 class OutputSurface; | 14 class OutputSurface; |
16 class ResourceProvider; | 15 class ResourceProvider; |
17 | 16 |
18 class CC_EXPORT DelegatingRenderer : public Renderer { | 17 class DelegatingRenderer : public Renderer { |
19 public: | 18 public: |
20 static scoped_ptr<DelegatingRenderer> Create( | 19 static scoped_ptr<DelegatingRenderer> Create( |
21 RendererClient* client, | 20 RendererClient* client, |
22 const RendererSettings* settings, | 21 const RendererSettings* settings, |
23 OutputSurface* output_surface, | 22 OutputSurface* output_surface, |
24 ResourceProvider* resource_provider); | 23 ResourceProvider* resource_provider); |
25 ~DelegatingRenderer() override; | 24 ~DelegatingRenderer() override; |
26 | 25 |
27 const RendererCapabilitiesImpl& Capabilities() const override; | 26 const RendererCapabilitiesImpl& Capabilities() const override; |
28 | 27 |
(...skipping 20 matching lines...) Expand all Loading... |
49 ResourceProvider* resource_provider_; | 48 ResourceProvider* resource_provider_; |
50 RendererCapabilitiesImpl capabilities_; | 49 RendererCapabilitiesImpl capabilities_; |
51 scoped_ptr<DelegatedFrameData> delegated_frame_data_; | 50 scoped_ptr<DelegatedFrameData> delegated_frame_data_; |
52 | 51 |
53 DISALLOW_COPY_AND_ASSIGN(DelegatingRenderer); | 52 DISALLOW_COPY_AND_ASSIGN(DelegatingRenderer); |
54 }; | 53 }; |
55 | 54 |
56 } // namespace cc | 55 } // namespace cc |
57 | 56 |
58 #endif // CC_OUTPUT_DELEGATING_RENDERER_H_ | 57 #endif // CC_OUTPUT_DELEGATING_RENDERER_H_ |
OLD | NEW |