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

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

Issue 1196553009: Revert "cc: Make tiling interest rect calc based on viewport." (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: revert extra bools. Created 5 years, 6 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_settings.h ('k') | chrome/app/generated_resources.grd » ('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 #include "cc/trees/layer_tree_settings.h" 5 #include "cc/trees/layer_tree_settings.h"
6 6
7 #include <GLES2/gl2.h> 7 #include <GLES2/gl2.h>
8 #include <limits> 8 #include <limits>
9 9
10 #include "base/command_line.h" 10 #include "base/command_line.h"
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 minimum_contents_scale(0.0625f), 45 minimum_contents_scale(0.0625f),
46 low_res_contents_scale_factor(0.25f), 46 low_res_contents_scale_factor(0.25f),
47 top_controls_show_threshold(0.5f), 47 top_controls_show_threshold(0.5f),
48 top_controls_hide_threshold(0.5f), 48 top_controls_hide_threshold(0.5f),
49 background_animation_rate(1.0), 49 background_animation_rate(1.0),
50 max_partial_texture_updates(std::numeric_limits<size_t>::max()), 50 max_partial_texture_updates(std::numeric_limits<size_t>::max()),
51 default_tile_size(gfx::Size(256, 256)), 51 default_tile_size(gfx::Size(256, 256)),
52 max_untiled_layer_size(gfx::Size(512, 512)), 52 max_untiled_layer_size(gfx::Size(512, 512)),
53 default_tile_grid_size(gfx::Size(256, 256)), 53 default_tile_grid_size(gfx::Size(256, 256)),
54 minimum_occlusion_tracking_size(gfx::Size(160, 160)), 54 minimum_occlusion_tracking_size(gfx::Size(160, 160)),
55 tiling_interest_area_viewport_multiplier(9.0f), 55 // At 256x256 tiles, 128 tiles cover an area of 2048x4096 pixels.
56 max_tiles_for_interest_area(128),
56 skewport_target_time_in_seconds(1.0f), 57 skewport_target_time_in_seconds(1.0f),
57 skewport_extrapolation_limit_in_content_pixels(2000), 58 skewport_extrapolation_limit_in_content_pixels(2000),
58 max_unused_resource_memory_percentage(100), 59 max_unused_resource_memory_percentage(100),
59 max_memory_for_prepaint_percentage(100), 60 max_memory_for_prepaint_percentage(100),
60 strict_layer_property_change_checking(false), 61 strict_layer_property_change_checking(false),
61 use_one_copy(true), 62 use_one_copy(true),
62 use_zero_copy(false), 63 use_zero_copy(false),
63 use_persistent_map_for_gpu_memory_buffers(false), 64 use_persistent_map_for_gpu_memory_buffers(false),
64 enable_elastic_overscroll(false), 65 enable_elastic_overscroll(false),
65 use_image_texture_target(GL_TEXTURE_2D), 66 use_image_texture_target(GL_TEXTURE_2D),
(...skipping 21 matching lines...) Expand all
87 scheduler_settings.using_synchronous_renderer_compositor = 88 scheduler_settings.using_synchronous_renderer_compositor =
88 using_synchronous_renderer_compositor; 89 using_synchronous_renderer_compositor;
89 scheduler_settings.throttle_frame_production = 90 scheduler_settings.throttle_frame_production =
90 !renderer_settings.disable_gpu_vsync; 91 !renderer_settings.disable_gpu_vsync;
91 scheduler_settings.background_frame_interval = 92 scheduler_settings.background_frame_interval =
92 base::TimeDelta::FromSecondsD(1.0 / background_animation_rate); 93 base::TimeDelta::FromSecondsD(1.0 / background_animation_rate);
93 return scheduler_settings; 94 return scheduler_settings;
94 } 95 }
95 96
96 } // namespace cc 97 } // namespace cc
OLDNEW
« no previous file with comments | « cc/trees/layer_tree_settings.h ('k') | chrome/app/generated_resources.grd » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698