| OLD | NEW | 
|   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  |  13  | 
|  14 namespace cc { |  14 namespace cc { | 
|  15  |  15  | 
|  16 LayerSettings::LayerSettings() : use_compositor_animation_timelines(false) { |  16 LayerSettings::LayerSettings() : use_compositor_animation_timelines(false) { | 
|  17 } |  17 } | 
|  18  |  18  | 
|  19 LayerSettings::~LayerSettings() { |  19 LayerSettings::~LayerSettings() { | 
|  20 } |  20 } | 
|  21  |  21  | 
|  22 LayerTreeSettings::LayerTreeSettings() |  22 LayerTreeSettings::LayerTreeSettings() | 
|  23     : single_thread_proxy_scheduler(true), |  23     : single_thread_proxy_scheduler(true), | 
|  24       use_external_begin_frame_source(false), |  24       use_external_begin_frame_source(false), | 
|  25       main_frame_before_activation_enabled(false), |  25       main_frame_before_activation_enabled(false), | 
|  26       using_synchronous_renderer_compositor(false), |  26       using_synchronous_renderer_compositor(false), | 
|  27       report_overscroll_only_for_scrollable_axes(false), |  | 
|  28       accelerated_animation_enabled(true), |  27       accelerated_animation_enabled(true), | 
|  29       can_use_lcd_text(true), |  28       can_use_lcd_text(true), | 
|  30       use_distance_field_text(false), |  29       use_distance_field_text(false), | 
|  31       gpu_rasterization_enabled(false), |  30       gpu_rasterization_enabled(false), | 
|  32       gpu_rasterization_forced(false), |  31       gpu_rasterization_forced(false), | 
|  33       gpu_rasterization_msaa_sample_count(0), |  32       gpu_rasterization_msaa_sample_count(0), | 
|  34       gpu_rasterization_skewport_target_time_in_seconds(0.2f), |  33       gpu_rasterization_skewport_target_time_in_seconds(0.2f), | 
|  35       create_low_res_tiling(false), |  34       create_low_res_tiling(false), | 
|  36       scrollbar_animator(NO_ANIMATOR), |  35       scrollbar_animator(NO_ANIMATOR), | 
|  37       scrollbar_fade_delay_ms(0), |  36       scrollbar_fade_delay_ms(0), | 
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  87       timeout_and_draw_when_animation_checkerboards; |  86       timeout_and_draw_when_animation_checkerboards; | 
|  88   scheduler_settings.using_synchronous_renderer_compositor = |  87   scheduler_settings.using_synchronous_renderer_compositor = | 
|  89       using_synchronous_renderer_compositor; |  88       using_synchronous_renderer_compositor; | 
|  90   scheduler_settings.throttle_frame_production = wait_for_beginframe_interval; |  89   scheduler_settings.throttle_frame_production = wait_for_beginframe_interval; | 
|  91   scheduler_settings.background_frame_interval = |  90   scheduler_settings.background_frame_interval = | 
|  92       base::TimeDelta::FromSecondsD(1.0 / background_animation_rate); |  91       base::TimeDelta::FromSecondsD(1.0 / background_animation_rate); | 
|  93   return scheduler_settings; |  92   return scheduler_settings; | 
|  94 } |  93 } | 
|  95  |  94  | 
|  96 }  // namespace cc |  95 }  // namespace cc | 
| OLD | NEW |