OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_SETTINGS_H_ | 5 #ifndef CC_OUTPUT_RENDERER_SETTINGS_H_ |
6 #define CC_OUTPUT_RENDERER_SETTINGS_H_ | 6 #define CC_OUTPUT_RENDERER_SETTINGS_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/resources/resource_format.h" |
10 | 11 |
11 namespace cc { | 12 namespace cc { |
12 | 13 |
13 namespace proto { | 14 namespace proto { |
14 class RendererSettings; | 15 class RendererSettings; |
15 } // namespace proto | 16 } // namespace proto |
16 | 17 |
17 class CC_EXPORT RendererSettings { | 18 class CC_EXPORT RendererSettings { |
18 public: | 19 public: |
19 RendererSettings(); | 20 RendererSettings(); |
20 ~RendererSettings(); | 21 ~RendererSettings(); |
21 | 22 |
22 bool allow_antialiasing; | 23 bool allow_antialiasing; |
23 bool force_antialiasing; | 24 bool force_antialiasing; |
24 bool force_blending_with_shaders; | 25 bool force_blending_with_shaders; |
25 bool partial_swap_enabled; | 26 bool partial_swap_enabled; |
26 bool finish_rendering_on_resize; | 27 bool finish_rendering_on_resize; |
27 bool should_clear_root_render_pass; | 28 bool should_clear_root_render_pass; |
28 bool disable_display_vsync; | 29 bool disable_display_vsync; |
29 bool delay_releasing_overlay_resources; | 30 bool delay_releasing_overlay_resources; |
30 double refresh_rate; | 31 double refresh_rate; |
31 int highp_threshold_min; | 32 int highp_threshold_min; |
32 bool use_rgba_4444_textures; | |
33 size_t texture_id_allocation_chunk_size; | 33 size_t texture_id_allocation_chunk_size; |
34 bool use_gpu_memory_buffer_resources; | 34 bool use_gpu_memory_buffer_resources; |
| 35 ResourceFormat preferred_tile_format; |
35 | 36 |
36 void ToProtobuf(proto::RendererSettings* proto) const; | 37 void ToProtobuf(proto::RendererSettings* proto) const; |
37 void FromProtobuf(const proto::RendererSettings& proto); | 38 void FromProtobuf(const proto::RendererSettings& proto); |
38 | 39 |
39 bool operator==(const RendererSettings& other) const; | 40 bool operator==(const RendererSettings& other) const; |
40 }; | 41 }; |
41 | 42 |
42 } // namespace cc | 43 } // namespace cc |
43 | 44 |
44 #endif // CC_OUTPUT_RENDERER_SETTINGS_H_ | 45 #endif // CC_OUTPUT_RENDERER_SETTINGS_H_ |
OLD | NEW |