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

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

Issue 1449143004: Enable compositor-thread property trees (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 use_partial_raster(false), 59 use_partial_raster(false),
60 enable_elastic_overscroll(false), 60 enable_elastic_overscroll(false),
61 use_image_texture_targets( 61 use_image_texture_targets(
62 static_cast<size_t>(gfx::BufferFormat::LAST) + 1, 62 static_cast<size_t>(gfx::BufferFormat::LAST) + 1,
63 GL_TEXTURE_2D), 63 GL_TEXTURE_2D),
64 ignore_root_layer_flings(false), 64 ignore_root_layer_flings(false),
65 scheduled_raster_task_limit(32), 65 scheduled_raster_task_limit(32),
66 use_occlusion_for_tile_prioritization(false), 66 use_occlusion_for_tile_prioritization(false),
67 record_full_layer(false), 67 record_full_layer(false),
68 verify_property_trees(false), 68 verify_property_trees(false),
69 use_property_trees(false), 69 use_property_trees(true),
70 image_decode_tasks_enabled(false), 70 image_decode_tasks_enabled(false),
71 use_compositor_animation_timelines(false), 71 use_compositor_animation_timelines(false),
72 wait_for_beginframe_interval(true), 72 wait_for_beginframe_interval(true),
73 max_staging_buffer_usage_in_bytes(32 * 1024 * 1024), 73 max_staging_buffer_usage_in_bytes(32 * 1024 * 1024),
74 memory_policy_(64 * 1024 * 1024, 74 memory_policy_(64 * 1024 * 1024,
75 gpu::MemoryAllocation::CUTOFF_ALLOW_EVERYTHING, 75 gpu::MemoryAllocation::CUTOFF_ALLOW_EVERYTHING,
76 ManagedMemoryPolicy::kDefaultNumResourcesLimit) {} 76 ManagedMemoryPolicy::kDefaultNumResourcesLimit) {}
77 77
78 LayerTreeSettings::~LayerTreeSettings() {} 78 LayerTreeSettings::~LayerTreeSettings() {}
79 79
80 SchedulerSettings LayerTreeSettings::ToSchedulerSettings() const { 80 SchedulerSettings LayerTreeSettings::ToSchedulerSettings() const {
81 SchedulerSettings scheduler_settings; 81 SchedulerSettings scheduler_settings;
82 scheduler_settings.use_external_begin_frame_source = 82 scheduler_settings.use_external_begin_frame_source =
83 use_external_begin_frame_source; 83 use_external_begin_frame_source;
84 scheduler_settings.main_frame_before_activation_enabled = 84 scheduler_settings.main_frame_before_activation_enabled =
85 main_frame_before_activation_enabled; 85 main_frame_before_activation_enabled;
86 scheduler_settings.timeout_and_draw_when_animation_checkerboards = 86 scheduler_settings.timeout_and_draw_when_animation_checkerboards =
87 timeout_and_draw_when_animation_checkerboards; 87 timeout_and_draw_when_animation_checkerboards;
88 scheduler_settings.using_synchronous_renderer_compositor = 88 scheduler_settings.using_synchronous_renderer_compositor =
89 using_synchronous_renderer_compositor; 89 using_synchronous_renderer_compositor;
90 scheduler_settings.throttle_frame_production = wait_for_beginframe_interval; 90 scheduler_settings.throttle_frame_production = wait_for_beginframe_interval;
91 scheduler_settings.background_frame_interval = 91 scheduler_settings.background_frame_interval =
92 base::TimeDelta::FromSecondsD(1.0 / background_animation_rate); 92 base::TimeDelta::FromSecondsD(1.0 / background_animation_rate);
93 return scheduler_settings; 93 return scheduler_settings;
94 } 94 }
95 95
96 } // namespace cc 96 } // 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