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