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

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

Issue 2007163002: cc: Separate raster and decode prepaint regions. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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
« cc/tiles/tile_manager.cc ('K') | « cc/trees/layer_tree_settings.h ('k') | no next file » | 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 <stddef.h> 8 #include <stddef.h>
9 #include <limits> 9 #include <limits>
10 10
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
103 wait_for_beginframe_interval(true), 103 wait_for_beginframe_interval(true),
104 abort_commit_before_output_surface_creation(true), 104 abort_commit_before_output_surface_creation(true),
105 use_mouse_wheel_gestures(false), 105 use_mouse_wheel_gestures(false),
106 use_layer_lists(false), 106 use_layer_lists(false),
107 max_staging_buffer_usage_in_bytes(32 * 1024 * 1024), 107 max_staging_buffer_usage_in_bytes(32 * 1024 * 1024),
108 memory_policy_(64 * 1024 * 1024, 108 memory_policy_(64 * 1024 * 1024,
109 gpu::MemoryAllocation::CUTOFF_ALLOW_EVERYTHING, 109 gpu::MemoryAllocation::CUTOFF_ALLOW_EVERYTHING,
110 ManagedMemoryPolicy::kDefaultNumResourcesLimit), 110 ManagedMemoryPolicy::kDefaultNumResourcesLimit),
111 gpu_decoded_image_budget_bytes(96 * 1024 * 1024), 111 gpu_decoded_image_budget_bytes(96 * 1024 * 1024),
112 software_decoded_image_budget_bytes(128 * 1024 * 1024), 112 software_decoded_image_budget_bytes(128 * 1024 * 1024),
113 max_preraster_distance_in_screen_pixels(1000),
ericrk 2016/05/24 23:42:34 I'm curious if we should use an even lower limit f
vmpstr 2016/06/07 20:43:55 That's entirely possible. Eventually I'd like this
113 use_cached_picture_raster(true) {} 114 use_cached_picture_raster(true) {}
114 115
115 LayerTreeSettings::LayerTreeSettings(const LayerTreeSettings& other) = default; 116 LayerTreeSettings::LayerTreeSettings(const LayerTreeSettings& other) = default;
116 117
117 LayerTreeSettings::~LayerTreeSettings() {} 118 LayerTreeSettings::~LayerTreeSettings() {}
118 119
119 bool LayerTreeSettings::operator==(const LayerTreeSettings& other) const { 120 bool LayerTreeSettings::operator==(const LayerTreeSettings& other) const {
120 return renderer_settings == other.renderer_settings && 121 return renderer_settings == other.renderer_settings &&
121 single_thread_proxy_scheduler == other.single_thread_proxy_scheduler && 122 single_thread_proxy_scheduler == other.single_thread_proxy_scheduler &&
122 use_external_begin_frame_source == 123 use_external_begin_frame_source ==
(...skipping 195 matching lines...) Expand 10 before | Expand all | Expand 10 after
318 using_synchronous_renderer_compositor; 319 using_synchronous_renderer_compositor;
319 scheduler_settings.throttle_frame_production = wait_for_beginframe_interval; 320 scheduler_settings.throttle_frame_production = wait_for_beginframe_interval;
320 scheduler_settings.background_frame_interval = 321 scheduler_settings.background_frame_interval =
321 base::TimeDelta::FromSecondsD(1.0 / background_animation_rate); 322 base::TimeDelta::FromSecondsD(1.0 / background_animation_rate);
322 scheduler_settings.abort_commit_before_output_surface_creation = 323 scheduler_settings.abort_commit_before_output_surface_creation =
323 abort_commit_before_output_surface_creation; 324 abort_commit_before_output_surface_creation;
324 return scheduler_settings; 325 return scheduler_settings;
325 } 326 }
326 327
327 } // namespace cc 328 } // namespace cc
OLDNEW
« cc/tiles/tile_manager.cc ('K') | « cc/trees/layer_tree_settings.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698