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

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

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 #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 class CC_EXPORT RendererSettings { 16 class CC_EXPORT RendererSettings {
17 public: 17 public:
18 RendererSettings(); 18 RendererSettings();
19 RendererSettings(const RendererSettings& other); 19 RendererSettings(const RendererSettings& other);
20 ~RendererSettings(); 20 ~RendererSettings();
21 21
22 bool allow_antialiasing; 22 bool allow_antialiasing = true;
23 bool force_antialiasing; 23 bool force_antialiasing = false;
24 bool force_blending_with_shaders; 24 bool force_blending_with_shaders = false;
25 bool partial_swap_enabled; 25 bool partial_swap_enabled = false;
26 bool finish_rendering_on_resize; 26 bool finish_rendering_on_resize = false;
27 bool should_clear_root_render_pass; 27 bool should_clear_root_render_pass = true;
28 bool disable_display_vsync; 28 bool disable_display_vsync = false;
29 bool release_overlay_resources_after_gpu_query; 29 bool release_overlay_resources_after_gpu_query = false;
30 bool gl_composited_texture_quad_border; 30 bool gl_composited_texture_quad_border = false;
31 bool show_overdraw_feedback; 31 bool show_overdraw_feedback = false;
32 bool enable_color_correct_rendering = false;
32 33
33 double refresh_rate; 34 double refresh_rate = 60.0;
34 int highp_threshold_min; 35 int highp_threshold_min = 0;
35 size_t texture_id_allocation_chunk_size; 36 size_t texture_id_allocation_chunk_size = 64;
36 bool use_gpu_memory_buffer_resources; 37 bool use_gpu_memory_buffer_resources = false;
37 ResourceFormat preferred_tile_format; 38 ResourceFormat preferred_tile_format;
38 BufferToTextureTargetMap buffer_to_texture_target_map; 39 BufferToTextureTargetMap buffer_to_texture_target_map;
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698