Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(19)

Side by Side Diff: cc/output/renderer_settings.cc

Issue 2677893003: cc: Add color conversion support to all DrawQuad types (Closed)
Patch Set: Update w/2681223002 Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 : preferred_tile_format(PlatformColor::BestTextureFormat()) {}
16 force_antialiasing(false),
17 force_blending_with_shaders(false),
18 partial_swap_enabled(false),
19 finish_rendering_on_resize(false),
20 should_clear_root_render_pass(true),
21 disable_display_vsync(false),
22 release_overlay_resources_after_gpu_query(false),
23 gl_composited_texture_quad_border(false),
24 show_overdraw_feedback(false),
25 refresh_rate(60.0),
26 highp_threshold_min(0),
27 texture_id_allocation_chunk_size(64),
28 use_gpu_memory_buffer_resources(false),
29 preferred_tile_format(PlatformColor::BestTextureFormat()) {}
30 16
31 RendererSettings::RendererSettings(const RendererSettings& other) = default; 17 RendererSettings::RendererSettings(const RendererSettings& other) = default;
32 18
33 RendererSettings::~RendererSettings() { 19 RendererSettings::~RendererSettings() {
34 } 20 }
35 21
36 bool RendererSettings::operator==(const RendererSettings& other) const { 22 bool RendererSettings::operator==(const RendererSettings& other) const {
37 return allow_antialiasing == other.allow_antialiasing && 23 return allow_antialiasing == other.allow_antialiasing &&
38 force_antialiasing == other.force_antialiasing && 24 force_antialiasing == other.force_antialiasing &&
39 force_blending_with_shaders == other.force_blending_with_shaders && 25 force_blending_with_shaders == other.force_blending_with_shaders &&
40 partial_swap_enabled == other.partial_swap_enabled && 26 partial_swap_enabled == other.partial_swap_enabled &&
41 finish_rendering_on_resize == other.finish_rendering_on_resize && 27 finish_rendering_on_resize == other.finish_rendering_on_resize &&
42 should_clear_root_render_pass == other.should_clear_root_render_pass && 28 should_clear_root_render_pass == other.should_clear_root_render_pass &&
43 disable_display_vsync == other.disable_display_vsync && 29 disable_display_vsync == other.disable_display_vsync &&
44 release_overlay_resources_after_gpu_query == 30 release_overlay_resources_after_gpu_query ==
45 other.release_overlay_resources_after_gpu_query && 31 other.release_overlay_resources_after_gpu_query &&
46 gl_composited_texture_quad_border == 32 gl_composited_texture_quad_border ==
47 other.gl_composited_texture_quad_border && 33 other.gl_composited_texture_quad_border &&
48 show_overdraw_feedback == other.show_overdraw_feedback && 34 show_overdraw_feedback == other.show_overdraw_feedback &&
35 enable_color_correct_rendering ==
36 other.enable_color_correct_rendering &&
49 refresh_rate == other.refresh_rate && 37 refresh_rate == other.refresh_rate &&
50 highp_threshold_min == other.highp_threshold_min && 38 highp_threshold_min == other.highp_threshold_min &&
51 texture_id_allocation_chunk_size == 39 texture_id_allocation_chunk_size ==
52 other.texture_id_allocation_chunk_size && 40 other.texture_id_allocation_chunk_size &&
53 use_gpu_memory_buffer_resources == 41 use_gpu_memory_buffer_resources ==
54 other.use_gpu_memory_buffer_resources && 42 other.use_gpu_memory_buffer_resources &&
55 preferred_tile_format == other.preferred_tile_format && 43 preferred_tile_format == other.preferred_tile_format &&
56 buffer_to_texture_target_map == other.buffer_to_texture_target_map; 44 buffer_to_texture_target_map == other.buffer_to_texture_target_map;
57 } 45 }
58 46
59 } // namespace cc 47 } // namespace cc
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698