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

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

Issue 2266223002: cc: Compute draw transforms dynamically. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase! Created 4 years, 2 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') | cc/trees/property_tree.h » ('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 "cc/proto/gfx_conversions.h" 7 #include "cc/proto/gfx_conversions.h"
8 #include "third_party/khronos/GLES2/gl2.h" 8 #include "third_party/khronos/GLES2/gl2.h"
9 9
10 namespace cc { 10 namespace cc {
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
67 max_memory_for_prepaint_percentage == 67 max_memory_for_prepaint_percentage ==
68 other.max_memory_for_prepaint_percentage && 68 other.max_memory_for_prepaint_percentage &&
69 use_zero_copy == other.use_zero_copy && 69 use_zero_copy == other.use_zero_copy &&
70 use_partial_raster == other.use_partial_raster && 70 use_partial_raster == other.use_partial_raster &&
71 enable_elastic_overscroll == other.enable_elastic_overscroll && 71 enable_elastic_overscroll == other.enable_elastic_overscroll &&
72 ignore_root_layer_flings == other.ignore_root_layer_flings && 72 ignore_root_layer_flings == other.ignore_root_layer_flings &&
73 scheduled_raster_task_limit == other.scheduled_raster_task_limit && 73 scheduled_raster_task_limit == other.scheduled_raster_task_limit &&
74 use_occlusion_for_tile_prioritization == 74 use_occlusion_for_tile_prioritization ==
75 other.use_occlusion_for_tile_prioritization && 75 other.use_occlusion_for_tile_prioritization &&
76 verify_clip_tree_calculations == other.verify_clip_tree_calculations && 76 verify_clip_tree_calculations == other.verify_clip_tree_calculations &&
77 verify_transform_tree_calculations ==
78 other.verify_transform_tree_calculations &&
79 image_decode_tasks_enabled == other.image_decode_tasks_enabled && 77 image_decode_tasks_enabled == other.image_decode_tasks_enabled &&
80 max_staging_buffer_usage_in_bytes == 78 max_staging_buffer_usage_in_bytes ==
81 other.max_staging_buffer_usage_in_bytes && 79 other.max_staging_buffer_usage_in_bytes &&
82 gpu_memory_policy == other.gpu_memory_policy && 80 gpu_memory_policy == other.gpu_memory_policy &&
83 software_memory_policy == other.software_memory_policy && 81 software_memory_policy == other.software_memory_policy &&
84 LayerTreeDebugState::Equal(initial_debug_state, 82 LayerTreeDebugState::Equal(initial_debug_state,
85 other.initial_debug_state) && 83 other.initial_debug_state) &&
86 use_cached_picture_raster == other.use_cached_picture_raster; 84 use_cached_picture_raster == other.use_cached_picture_raster;
87 } 85 }
88 86
89 SchedulerSettings LayerTreeSettings::ToSchedulerSettings() const { 87 SchedulerSettings LayerTreeSettings::ToSchedulerSettings() const {
90 SchedulerSettings scheduler_settings; 88 SchedulerSettings scheduler_settings;
91 scheduler_settings.main_frame_before_activation_enabled = 89 scheduler_settings.main_frame_before_activation_enabled =
92 main_frame_before_activation_enabled; 90 main_frame_before_activation_enabled;
93 scheduler_settings.timeout_and_draw_when_animation_checkerboards = 91 scheduler_settings.timeout_and_draw_when_animation_checkerboards =
94 timeout_and_draw_when_animation_checkerboards; 92 timeout_and_draw_when_animation_checkerboards;
95 scheduler_settings.using_synchronous_renderer_compositor = 93 scheduler_settings.using_synchronous_renderer_compositor =
96 using_synchronous_renderer_compositor; 94 using_synchronous_renderer_compositor;
97 scheduler_settings.enable_latency_recovery = enable_latency_recovery; 95 scheduler_settings.enable_latency_recovery = enable_latency_recovery;
98 scheduler_settings.background_frame_interval = 96 scheduler_settings.background_frame_interval =
99 base::TimeDelta::FromSecondsD(1.0 / background_animation_rate); 97 base::TimeDelta::FromSecondsD(1.0 / background_animation_rate);
100 scheduler_settings.abort_commit_before_compositor_frame_sink_creation = 98 scheduler_settings.abort_commit_before_compositor_frame_sink_creation =
101 abort_commit_before_compositor_frame_sink_creation; 99 abort_commit_before_compositor_frame_sink_creation;
102 return scheduler_settings; 100 return scheduler_settings;
103 } 101 }
104 102
105 } // namespace cc 103 } // namespace cc
OLDNEW
« no previous file with comments | « cc/trees/layer_tree_settings.h ('k') | cc/trees/property_tree.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698