Chromium Code Reviews| 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 | 11 |
| 11 namespace cc { | 12 namespace cc { |
| 12 | 13 |
| 13 RendererSettings::RendererSettings() | 14 RendererSettings::RendererSettings() |
| 14 : allow_antialiasing(true), | 15 : allow_antialiasing(true), |
| 15 force_antialiasing(false), | 16 force_antialiasing(false), |
| 16 force_blending_with_shaders(false), | 17 force_blending_with_shaders(false), |
| 17 partial_swap_enabled(false), | 18 partial_swap_enabled(false), |
| 18 finish_rendering_on_resize(false), | 19 finish_rendering_on_resize(false), |
| 19 should_clear_root_render_pass(true), | 20 should_clear_root_render_pass(true), |
| 20 disable_display_vsync(false), | 21 disable_display_vsync(false), |
| 21 delay_releasing_overlay_resources(false), | 22 delay_releasing_overlay_resources(false), |
| 22 refresh_rate(60.0), | 23 refresh_rate(60.0), |
| 23 highp_threshold_min(0), | 24 highp_threshold_min(0), |
| 24 use_rgba_4444_textures(false), | |
| 25 texture_id_allocation_chunk_size(64), | 25 texture_id_allocation_chunk_size(64), |
| 26 use_gpu_memory_buffer_resources(false) {} | 26 use_gpu_memory_buffer_resources(false), |
| 27 preferred_tile_format(PlatformColor::BestTextureFormat(true)) {} | |
|
reveman
2015/12/02 18:27:18
nit: I find calling BestTextureFormat with support
christiank
2015/12/03 12:57:59
I was thinking along the same lines. Fixed.
I thi
| |
| 27 | 28 |
| 28 RendererSettings::~RendererSettings() { | 29 RendererSettings::~RendererSettings() { |
| 29 } | 30 } |
| 30 | 31 |
| 31 } // namespace cc | 32 } // namespace cc |
| OLD | NEW |