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

Side by Side Diff: cc/trees/layer_tree_settings.h

Issue 2120713002: Fix use_image_texture_target inconsistencies (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix content browsertests Created 4 years, 5 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
« no previous file with comments | « cc/trees/layer_tree_host_impl_unittest.cc ('k') | cc/trees/layer_tree_settings.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2011 The Chromium Authors. All rights reserved. 1 // Copyright 2011 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_TREES_LAYER_TREE_SETTINGS_H_ 5 #ifndef CC_TREES_LAYER_TREE_SETTINGS_H_
6 #define CC_TREES_LAYER_TREE_SETTINGS_H_ 6 #define CC_TREES_LAYER_TREE_SETTINGS_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 9
10 #include <vector> 10 #include <vector>
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
78 // Note this value is specified with an ideal contents scale in mind. That 78 // Note this value is specified with an ideal contents scale in mind. That
79 // is, the ideal tiling would use this value as the padding. 79 // is, the ideal tiling would use this value as the padding.
80 // TODO(vmpstr): Figure out a better number that doesn't depend on scale. 80 // TODO(vmpstr): Figure out a better number that doesn't depend on scale.
81 int tiling_interest_area_padding = 3000; 81 int tiling_interest_area_padding = 3000;
82 float skewport_target_time_in_seconds = 1.0f; 82 float skewport_target_time_in_seconds = 1.0f;
83 int skewport_extrapolation_limit_in_screen_pixels = 2000; 83 int skewport_extrapolation_limit_in_screen_pixels = 2000;
84 size_t max_memory_for_prepaint_percentage = 100; 84 size_t max_memory_for_prepaint_percentage = 100;
85 bool use_zero_copy = false; 85 bool use_zero_copy = false;
86 bool use_partial_raster = false; 86 bool use_partial_raster = false;
87 bool enable_elastic_overscroll = false; 87 bool enable_elastic_overscroll = false;
88 // An array of image texture targets for each GpuMemoryBuffer format.
89 std::vector<unsigned> use_image_texture_targets;
90 bool ignore_root_layer_flings = false; 88 bool ignore_root_layer_flings = false;
91 size_t scheduled_raster_task_limit = 32; 89 size_t scheduled_raster_task_limit = 32;
92 bool use_occlusion_for_tile_prioritization = false; 90 bool use_occlusion_for_tile_prioritization = false;
93 bool verify_clip_tree_calculations = false; 91 bool verify_clip_tree_calculations = false;
94 bool verify_transform_tree_calculations = false; 92 bool verify_transform_tree_calculations = false;
95 bool image_decode_tasks_enabled = false; 93 bool image_decode_tasks_enabled = false;
96 bool wait_for_beginframe_interval = true; 94 bool wait_for_beginframe_interval = true;
97 bool abort_commit_before_output_surface_creation = true; 95 bool abort_commit_before_output_surface_creation = true;
98 bool use_layer_lists = false; 96 bool use_layer_lists = false;
99 int max_staging_buffer_usage_in_bytes = 32 * 1024 * 1024; 97 int max_staging_buffer_usage_in_bytes = 32 * 1024 * 1024;
100 ManagedMemoryPolicy memory_policy_; 98 ManagedMemoryPolicy memory_policy_;
101 size_t gpu_decoded_image_budget_bytes = 96 * 1024 * 1024; 99 size_t gpu_decoded_image_budget_bytes = 96 * 1024 * 1024;
102 size_t software_decoded_image_budget_bytes = 128 * 1024 * 1024; 100 size_t software_decoded_image_budget_bytes = 128 * 1024 * 1024;
103 int max_preraster_distance_in_screen_pixels = 1000; 101 int max_preraster_distance_in_screen_pixels = 1000;
104 102
105 // If set to true, the display item list will internally cache a SkPicture for 103 // If set to true, the display item list will internally cache a SkPicture for
106 // raster rather than directly using the display items. 104 // raster rather than directly using the display items.
107 bool use_cached_picture_raster = true; 105 bool use_cached_picture_raster = true;
108 106
109 LayerTreeDebugState initial_debug_state; 107 LayerTreeDebugState initial_debug_state;
110 }; 108 };
111 109
112 } // namespace cc 110 } // namespace cc
113 111
114 #endif // CC_TREES_LAYER_TREE_SETTINGS_H_ 112 #endif // CC_TREES_LAYER_TREE_SETTINGS_H_
OLDNEW
« no previous file with comments | « cc/trees/layer_tree_host_impl_unittest.cc ('k') | cc/trees/layer_tree_settings.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698