| 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 #include "cc/output/renderer_settings.h" | 5 #include "cc/output/renderer_settings.h" |
| 6 | 6 |
| 7 #include <limits> | 7 #include <limits> |
| 8 | 8 |
| 9 #include "base/logging.h" | 9 #include "base/logging.h" |
| 10 #include "cc/resources/platform_color.h" | 10 #include "cc/resources/platform_color.h" |
| 11 | 11 |
| 12 namespace cc { | 12 namespace cc { |
| 13 | 13 |
| 14 RendererSettings::RendererSettings() | 14 RendererSettings::RendererSettings() |
| 15 : allow_antialiasing(true), | 15 : allow_antialiasing(true), |
| 16 force_antialiasing(false), | 16 force_antialiasing(false), |
| 17 force_blending_with_shaders(false), | 17 force_blending_with_shaders(false), |
| 18 partial_swap_enabled(false), | 18 partial_swap_enabled(false), |
| 19 finish_rendering_on_resize(false), | 19 finish_rendering_on_resize(false), |
| 20 should_clear_root_render_pass(true), | 20 should_clear_root_render_pass(true), |
| 21 disable_display_vsync(false), | 21 disable_display_vsync(false), |
| 22 release_overlay_resources_after_gpu_query(false), | 22 release_overlay_resources_after_gpu_query(false), |
| 23 gl_composited_texture_quad_border(false), | 23 gl_composited_texture_quad_border(false), |
| 24 show_overdraw_feedback(false), |
| 24 refresh_rate(60.0), | 25 refresh_rate(60.0), |
| 25 highp_threshold_min(0), | 26 highp_threshold_min(0), |
| 26 texture_id_allocation_chunk_size(64), | 27 texture_id_allocation_chunk_size(64), |
| 27 use_gpu_memory_buffer_resources(false), | 28 use_gpu_memory_buffer_resources(false), |
| 28 preferred_tile_format(PlatformColor::BestTextureFormat()) {} | 29 preferred_tile_format(PlatformColor::BestTextureFormat()) {} |
| 29 | 30 |
| 30 RendererSettings::RendererSettings(const RendererSettings& other) = default; | 31 RendererSettings::RendererSettings(const RendererSettings& other) = default; |
| 31 | 32 |
| 32 RendererSettings::~RendererSettings() { | 33 RendererSettings::~RendererSettings() { |
| 33 } | 34 } |
| 34 | 35 |
| 35 bool RendererSettings::operator==(const RendererSettings& other) const { | 36 bool RendererSettings::operator==(const RendererSettings& other) const { |
| 36 return allow_antialiasing == other.allow_antialiasing && | 37 return allow_antialiasing == other.allow_antialiasing && |
| 37 force_antialiasing == other.force_antialiasing && | 38 force_antialiasing == other.force_antialiasing && |
| 38 force_blending_with_shaders == other.force_blending_with_shaders && | 39 force_blending_with_shaders == other.force_blending_with_shaders && |
| 39 partial_swap_enabled == other.partial_swap_enabled && | 40 partial_swap_enabled == other.partial_swap_enabled && |
| 40 finish_rendering_on_resize == other.finish_rendering_on_resize && | 41 finish_rendering_on_resize == other.finish_rendering_on_resize && |
| 41 should_clear_root_render_pass == other.should_clear_root_render_pass && | 42 should_clear_root_render_pass == other.should_clear_root_render_pass && |
| 42 disable_display_vsync == other.disable_display_vsync && | 43 disable_display_vsync == other.disable_display_vsync && |
| 43 release_overlay_resources_after_gpu_query == | 44 release_overlay_resources_after_gpu_query == |
| 44 other.release_overlay_resources_after_gpu_query && | 45 other.release_overlay_resources_after_gpu_query && |
| 46 gl_composited_texture_quad_border == |
| 47 other.gl_composited_texture_quad_border && |
| 48 show_overdraw_feedback == other.show_overdraw_feedback && |
| 45 refresh_rate == other.refresh_rate && | 49 refresh_rate == other.refresh_rate && |
| 46 highp_threshold_min == other.highp_threshold_min && | 50 highp_threshold_min == other.highp_threshold_min && |
| 47 texture_id_allocation_chunk_size == | 51 texture_id_allocation_chunk_size == |
| 48 other.texture_id_allocation_chunk_size && | 52 other.texture_id_allocation_chunk_size && |
| 49 use_gpu_memory_buffer_resources == | 53 use_gpu_memory_buffer_resources == |
| 50 other.use_gpu_memory_buffer_resources && | 54 other.use_gpu_memory_buffer_resources && |
| 51 preferred_tile_format == other.preferred_tile_format && | 55 preferred_tile_format == other.preferred_tile_format && |
| 52 buffer_to_texture_target_map == other.buffer_to_texture_target_map; | 56 buffer_to_texture_target_map == other.buffer_to_texture_target_map; |
| 53 } | 57 } |
| 54 | 58 |
| 55 } // namespace cc | 59 } // namespace cc |
| OLD | NEW |