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_host_impl.h" | 5 #include "cc/trees/layer_tree_host_impl.h" |
6 | 6 |
7 #include <stddef.h> | 7 #include <stddef.h> |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <algorithm> | 10 #include <algorithm> |
(...skipping 213 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
224 settings.use_partial_raster)), | 224 settings.use_partial_raster)), |
225 pinch_gesture_active_(false), | 225 pinch_gesture_active_(false), |
226 pinch_gesture_end_should_clear_scrolling_layer_(false), | 226 pinch_gesture_end_should_clear_scrolling_layer_(false), |
227 fps_counter_( | 227 fps_counter_( |
228 FrameRateCounter::Create(task_runner_provider_->HasImplThread())), | 228 FrameRateCounter::Create(task_runner_provider_->HasImplThread())), |
229 memory_history_(MemoryHistory::Create()), | 229 memory_history_(MemoryHistory::Create()), |
230 debug_rect_history_(DebugRectHistory::Create()), | 230 debug_rect_history_(DebugRectHistory::Create()), |
231 texture_mailbox_deleter_(new TextureMailboxDeleter(GetTaskRunner())), | 231 texture_mailbox_deleter_(new TextureMailboxDeleter(GetTaskRunner())), |
232 max_memory_needed_bytes_(0), | 232 max_memory_needed_bytes_(0), |
233 resourceless_software_draw_(false), | 233 resourceless_software_draw_(false), |
234 output_is_secure_(false), | |
235 animation_host_(), | 234 animation_host_(), |
236 rendering_stats_instrumentation_(rendering_stats_instrumentation), | 235 rendering_stats_instrumentation_(rendering_stats_instrumentation), |
237 micro_benchmark_controller_(this), | 236 micro_benchmark_controller_(this), |
238 shared_bitmap_manager_(shared_bitmap_manager), | 237 shared_bitmap_manager_(shared_bitmap_manager), |
239 gpu_memory_buffer_manager_(gpu_memory_buffer_manager), | 238 gpu_memory_buffer_manager_(gpu_memory_buffer_manager), |
240 task_graph_runner_(task_graph_runner), | 239 task_graph_runner_(task_graph_runner), |
241 id_(id), | 240 id_(id), |
242 requires_high_res_to_draw_(false), | 241 requires_high_res_to_draw_(false), |
243 is_likely_to_require_a_draw_(false), | 242 is_likely_to_require_a_draw_(false), |
244 mutator_(nullptr), | 243 mutator_(nullptr), |
(...skipping 3756 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4001 const { | 4000 const { |
4002 return fixed_raster_scale_attempted_scale_change_history_.count() >= | 4001 return fixed_raster_scale_attempted_scale_change_history_.count() >= |
4003 kFixedRasterScaleAttemptedScaleChangeThreshold; | 4002 kFixedRasterScaleAttemptedScaleChangeThreshold; |
4004 } | 4003 } |
4005 | 4004 |
4006 void LayerTreeHostImpl::SetFixedRasterScaleAttemptedToChangeScale() { | 4005 void LayerTreeHostImpl::SetFixedRasterScaleAttemptedToChangeScale() { |
4007 fixed_raster_scale_attempted_scale_change_history_.set(0); | 4006 fixed_raster_scale_attempted_scale_change_history_.set(0); |
4008 } | 4007 } |
4009 | 4008 |
4010 } // namespace cc | 4009 } // namespace cc |
OLD | NEW |