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.cc

Issue 1462613002: Move cc::LayerSettings to cc/layers/layer_settings.h. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: cc_perftests 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
« no previous file with comments | « cc/trees/layer_tree_settings.h ('k') | cc/trees/tree_synchronizer_unittest.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 #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"
11 #include "base/logging.h" 11 #include "base/logging.h"
12 #include "base/strings/string_number_conversions.h" 12 #include "base/strings/string_number_conversions.h"
13 #include "ui/gfx/buffer_types.h" 13 #include "ui/gfx/buffer_types.h"
14 14
15 namespace cc { 15 namespace cc {
16 16
17 LayerSettings::LayerSettings() : use_compositor_animation_timelines(false) {
18 }
19
20 LayerSettings::~LayerSettings() {
21 }
22
23 LayerTreeSettings::LayerTreeSettings() 17 LayerTreeSettings::LayerTreeSettings()
24 : single_thread_proxy_scheduler(true), 18 : single_thread_proxy_scheduler(true),
25 use_external_begin_frame_source(false), 19 use_external_begin_frame_source(false),
26 main_frame_before_activation_enabled(false), 20 main_frame_before_activation_enabled(false),
27 using_synchronous_renderer_compositor(false), 21 using_synchronous_renderer_compositor(false),
28 accelerated_animation_enabled(true), 22 accelerated_animation_enabled(true),
29 can_use_lcd_text(true), 23 can_use_lcd_text(true),
30 use_distance_field_text(false), 24 use_distance_field_text(false),
31 gpu_rasterization_enabled(false), 25 gpu_rasterization_enabled(false),
32 gpu_rasterization_forced(false), 26 gpu_rasterization_forced(false),
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
87 timeout_and_draw_when_animation_checkerboards; 81 timeout_and_draw_when_animation_checkerboards;
88 scheduler_settings.using_synchronous_renderer_compositor = 82 scheduler_settings.using_synchronous_renderer_compositor =
89 using_synchronous_renderer_compositor; 83 using_synchronous_renderer_compositor;
90 scheduler_settings.throttle_frame_production = wait_for_beginframe_interval; 84 scheduler_settings.throttle_frame_production = wait_for_beginframe_interval;
91 scheduler_settings.background_frame_interval = 85 scheduler_settings.background_frame_interval =
92 base::TimeDelta::FromSecondsD(1.0 / background_animation_rate); 86 base::TimeDelta::FromSecondsD(1.0 / background_animation_rate);
93 return scheduler_settings; 87 return scheduler_settings;
94 } 88 }
95 89
96 } // namespace cc 90 } // namespace cc
OLDNEW
« no previous file with comments | « cc/trees/layer_tree_settings.h ('k') | cc/trees/tree_synchronizer_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698