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

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

Issue 1469733006: Revert of Enable compositor-thread property trees (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 5 years, 1 month 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 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 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 use_partial_raster(false), 53 use_partial_raster(false),
54 enable_elastic_overscroll(false), 54 enable_elastic_overscroll(false),
55 use_image_texture_targets( 55 use_image_texture_targets(
56 static_cast<size_t>(gfx::BufferFormat::LAST) + 1, 56 static_cast<size_t>(gfx::BufferFormat::LAST) + 1,
57 GL_TEXTURE_2D), 57 GL_TEXTURE_2D),
58 ignore_root_layer_flings(false), 58 ignore_root_layer_flings(false),
59 scheduled_raster_task_limit(32), 59 scheduled_raster_task_limit(32),
60 use_occlusion_for_tile_prioritization(false), 60 use_occlusion_for_tile_prioritization(false),
61 record_full_layer(false), 61 record_full_layer(false),
62 verify_property_trees(false), 62 verify_property_trees(false),
63 use_property_trees(true), 63 use_property_trees(false),
64 image_decode_tasks_enabled(false), 64 image_decode_tasks_enabled(false),
65 use_compositor_animation_timelines(false), 65 use_compositor_animation_timelines(false),
66 wait_for_beginframe_interval(true), 66 wait_for_beginframe_interval(true),
67 max_staging_buffer_usage_in_bytes(32 * 1024 * 1024), 67 max_staging_buffer_usage_in_bytes(32 * 1024 * 1024),
68 memory_policy_(64 * 1024 * 1024, 68 memory_policy_(64 * 1024 * 1024,
69 gpu::MemoryAllocation::CUTOFF_ALLOW_EVERYTHING, 69 gpu::MemoryAllocation::CUTOFF_ALLOW_EVERYTHING,
70 ManagedMemoryPolicy::kDefaultNumResourcesLimit) {} 70 ManagedMemoryPolicy::kDefaultNumResourcesLimit) {}
71 71
72 LayerTreeSettings::~LayerTreeSettings() {} 72 LayerTreeSettings::~LayerTreeSettings() {}
73 73
74 SchedulerSettings LayerTreeSettings::ToSchedulerSettings() const { 74 SchedulerSettings LayerTreeSettings::ToSchedulerSettings() const {
75 SchedulerSettings scheduler_settings; 75 SchedulerSettings scheduler_settings;
76 scheduler_settings.use_external_begin_frame_source = 76 scheduler_settings.use_external_begin_frame_source =
77 use_external_begin_frame_source; 77 use_external_begin_frame_source;
78 scheduler_settings.main_frame_before_activation_enabled = 78 scheduler_settings.main_frame_before_activation_enabled =
79 main_frame_before_activation_enabled; 79 main_frame_before_activation_enabled;
80 scheduler_settings.timeout_and_draw_when_animation_checkerboards = 80 scheduler_settings.timeout_and_draw_when_animation_checkerboards =
81 timeout_and_draw_when_animation_checkerboards; 81 timeout_and_draw_when_animation_checkerboards;
82 scheduler_settings.using_synchronous_renderer_compositor = 82 scheduler_settings.using_synchronous_renderer_compositor =
83 using_synchronous_renderer_compositor; 83 using_synchronous_renderer_compositor;
84 scheduler_settings.throttle_frame_production = wait_for_beginframe_interval; 84 scheduler_settings.throttle_frame_production = wait_for_beginframe_interval;
85 scheduler_settings.background_frame_interval = 85 scheduler_settings.background_frame_interval =
86 base::TimeDelta::FromSecondsD(1.0 / background_animation_rate); 86 base::TimeDelta::FromSecondsD(1.0 / background_animation_rate);
87 return scheduler_settings; 87 return scheduler_settings;
88 } 88 }
89 89
90 } // namespace cc 90 } // namespace cc
OLDNEW
« no previous file with comments | « cc/trees/layer_tree_host_common.cc ('k') | chrome/browser/chromeos/login/chrome_restart_request.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698