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/base/scoped_ptr_vector.h" | |
11 #include "cc/output/renderer_capabilities.h" | 10 #include "cc/output/renderer_capabilities.h" |
12 #include "cc/output/renderer_settings.h" | 11 #include "cc/output/renderer_settings.h" |
13 #include "ui/gfx/geometry/rect.h" | 12 #include "ui/gfx/geometry/rect.h" |
14 | 13 |
15 namespace cc { | 14 namespace cc { |
16 | 15 |
17 class CompositorFrameAck; | 16 class CompositorFrameAck; |
18 class CompositorFrameMetadata; | 17 class CompositorFrameMetadata; |
19 class RenderPass; | 18 class RenderPass; |
20 class RenderPassId; | 19 class RenderPassId; |
21 class ScopedResource; | 20 class ScopedResource; |
22 class Task; | 21 class Task; |
23 | 22 |
24 typedef ScopedPtrVector<RenderPass> RenderPassList; | 23 typedef std::vector<scoped_ptr<RenderPass>> RenderPassList; |
25 | 24 |
26 struct RendererCapabilitiesImpl { | 25 struct RendererCapabilitiesImpl { |
27 RendererCapabilitiesImpl(); | 26 RendererCapabilitiesImpl(); |
28 ~RendererCapabilitiesImpl(); | 27 ~RendererCapabilitiesImpl(); |
29 | 28 |
30 // Capabilities copied to main thread. | 29 // Capabilities copied to main thread. |
31 ResourceFormat best_texture_format; | 30 ResourceFormat best_texture_format; |
32 bool allow_partial_texture_updates; | 31 bool allow_partial_texture_updates; |
33 int max_texture_size; | 32 int max_texture_size; |
34 bool using_shared_memory_resources; | 33 bool using_shared_memory_resources; |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
90 const RendererSettings* settings_; | 89 const RendererSettings* settings_; |
91 bool visible_; | 90 bool visible_; |
92 | 91 |
93 private: | 92 private: |
94 DISALLOW_COPY_AND_ASSIGN(Renderer); | 93 DISALLOW_COPY_AND_ASSIGN(Renderer); |
95 }; | 94 }; |
96 | 95 |
97 } // namespace cc | 96 } // namespace cc |
98 | 97 |
99 #endif // CC_OUTPUT_RENDERER_H_ | 98 #endif // CC_OUTPUT_RENDERER_H_ |
OLD | NEW |