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

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

Issue 1130043003: [Sketch] CC Animations: Torpedo the old intrusive animation system. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@implscroll
Patch Set: Delete more (headers and animation_registrar_ leftover) Created 5 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
« no previous file with comments | « cc/trees/layer_tree_settings.h ('k') | chrome/browser/chromeos/login/chrome_restart_request.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"
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 use_one_copy(false), 63 use_one_copy(false),
64 use_zero_copy(false), 64 use_zero_copy(false),
65 enable_elastic_overscroll(false), 65 enable_elastic_overscroll(false),
66 use_image_texture_target(GL_TEXTURE_2D), 66 use_image_texture_target(GL_TEXTURE_2D),
67 ignore_root_layer_flings(false), 67 ignore_root_layer_flings(false),
68 scheduled_raster_task_limit(32), 68 scheduled_raster_task_limit(32),
69 use_occlusion_for_tile_prioritization(false), 69 use_occlusion_for_tile_prioritization(false),
70 record_full_layer(false), 70 record_full_layer(false),
71 use_display_lists(false), 71 use_display_lists(false),
72 verify_property_trees(false), 72 verify_property_trees(false),
73 gather_pixel_refs(false), 73 gather_pixel_refs(false) {
74 use_compositor_animation_timelines(false) {
75 } 74 }
76 75
77 LayerTreeSettings::~LayerTreeSettings() {} 76 LayerTreeSettings::~LayerTreeSettings() {}
78 77
79 SchedulerSettings LayerTreeSettings::ToSchedulerSettings() const { 78 SchedulerSettings LayerTreeSettings::ToSchedulerSettings() const {
80 SchedulerSettings scheduler_settings; 79 SchedulerSettings scheduler_settings;
81 scheduler_settings.use_external_begin_frame_source = 80 scheduler_settings.use_external_begin_frame_source =
82 use_external_begin_frame_source; 81 use_external_begin_frame_source;
83 scheduler_settings.main_frame_before_activation_enabled = 82 scheduler_settings.main_frame_before_activation_enabled =
84 main_frame_before_activation_enabled; 83 main_frame_before_activation_enabled;
85 scheduler_settings.impl_side_painting = impl_side_painting; 84 scheduler_settings.impl_side_painting = impl_side_painting;
86 scheduler_settings.timeout_and_draw_when_animation_checkerboards = 85 scheduler_settings.timeout_and_draw_when_animation_checkerboards =
87 timeout_and_draw_when_animation_checkerboards; 86 timeout_and_draw_when_animation_checkerboards;
88 scheduler_settings.maximum_number_of_failed_draws_before_draw_is_forced_ = 87 scheduler_settings.maximum_number_of_failed_draws_before_draw_is_forced_ =
89 maximum_number_of_failed_draws_before_draw_is_forced_; 88 maximum_number_of_failed_draws_before_draw_is_forced_;
90 scheduler_settings.using_synchronous_renderer_compositor = 89 scheduler_settings.using_synchronous_renderer_compositor =
91 using_synchronous_renderer_compositor; 90 using_synchronous_renderer_compositor;
92 scheduler_settings.throttle_frame_production = throttle_frame_production; 91 scheduler_settings.throttle_frame_production = throttle_frame_production;
93 scheduler_settings.main_thread_should_always_be_low_latency = false; 92 scheduler_settings.main_thread_should_always_be_low_latency = false;
94 scheduler_settings.background_frame_interval = 93 scheduler_settings.background_frame_interval =
95 base::TimeDelta::FromSecondsD(1.0 / background_animation_rate); 94 base::TimeDelta::FromSecondsD(1.0 / background_animation_rate);
96 return scheduler_settings; 95 return scheduler_settings;
97 } 96 }
98 97
99 } // namespace cc 98 } // namespace cc
OLDNEW
« no previous file with comments | « cc/trees/layer_tree_settings.h ('k') | chrome/browser/chromeos/login/chrome_restart_request.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698