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