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/output/renderer_capabilities.h" | 10 #include "cc/output/renderer_capabilities.h" |
(...skipping 16 matching lines...) Expand all Loading... | |
27 ~RendererCapabilitiesImpl(); | 27 ~RendererCapabilitiesImpl(); |
28 | 28 |
29 // Capabilities copied to main thread. | 29 // Capabilities copied to main thread. |
30 ResourceFormat best_texture_format; | 30 ResourceFormat best_texture_format; |
31 bool allow_partial_texture_updates; | 31 bool allow_partial_texture_updates; |
32 int max_texture_size; | 32 int max_texture_size; |
33 bool using_shared_memory_resources; | 33 bool using_shared_memory_resources; |
34 | 34 |
35 // Capabilities used on compositor thread only. | 35 // Capabilities used on compositor thread only. |
36 bool using_partial_swap; | 36 bool using_partial_swap; |
37 // Whether it's valid to SwapBuffers with an empty rect. Trivially true when | |
38 // |using_partial_swap|. | |
39 bool allow_empty_swap; | |
piman
2015/12/03 22:51:23
New field needs new initializer.
| |
37 bool using_egl_image; | 40 bool using_egl_image; |
38 bool using_image; | 41 bool using_image; |
39 bool using_discard_framebuffer; | 42 bool using_discard_framebuffer; |
40 bool allow_rasterize_on_demand; | 43 bool allow_rasterize_on_demand; |
41 int max_msaa_samples; | 44 int max_msaa_samples; |
42 | 45 |
43 RendererCapabilities MainThreadCapabilities() const; | 46 RendererCapabilities MainThreadCapabilities() const; |
44 }; | 47 }; |
45 | 48 |
46 class CC_EXPORT RendererClient { | 49 class CC_EXPORT RendererClient { |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
89 const RendererSettings* settings_; | 92 const RendererSettings* settings_; |
90 bool visible_; | 93 bool visible_; |
91 | 94 |
92 private: | 95 private: |
93 DISALLOW_COPY_AND_ASSIGN(Renderer); | 96 DISALLOW_COPY_AND_ASSIGN(Renderer); |
94 }; | 97 }; |
95 | 98 |
96 } // namespace cc | 99 } // namespace cc |
97 | 100 |
98 #endif // CC_OUTPUT_RENDERER_H_ | 101 #endif // CC_OUTPUT_RENDERER_H_ |
OLD | NEW |