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 <algorithm> | 7 #include <algorithm> |
8 #include <limits> | 8 #include <limits> |
9 #include <map> | 9 #include <map> |
10 #include <set> | 10 #include <set> |
(...skipping 2118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2129 GetTaskRunner(), GL_TEXTURE_2D); | 2129 GetTaskRunner(), GL_TEXTURE_2D); |
2130 | 2130 |
2131 int max_copy_texture_chromium_size = context_provider->ContextCapabilities() | 2131 int max_copy_texture_chromium_size = context_provider->ContextCapabilities() |
2132 .gpu.max_copy_texture_chromium_size; | 2132 .gpu.max_copy_texture_chromium_size; |
2133 | 2133 |
2134 *tile_task_worker_pool = OneCopyTileTaskWorkerPool::Create( | 2134 *tile_task_worker_pool = OneCopyTileTaskWorkerPool::Create( |
2135 GetTaskRunner(), task_graph_runner, context_provider, | 2135 GetTaskRunner(), task_graph_runner, context_provider, |
2136 resource_provider_.get(), max_copy_texture_chromium_size, | 2136 resource_provider_.get(), max_copy_texture_chromium_size, |
2137 settings_.use_persistent_map_for_gpu_memory_buffers, | 2137 settings_.use_persistent_map_for_gpu_memory_buffers, |
2138 settings_.max_staging_buffer_usage_in_bytes, | 2138 settings_.max_staging_buffer_usage_in_bytes, |
2139 settings_.renderer_settings.use_rgba_4444_textures); | 2139 settings_.renderer_settings.use_rgba_4444_textures, |
| 2140 settings_.renderer_settings.use_tile_compression); |
2140 } | 2141 } |
2141 | 2142 |
2142 void LayerTreeHostImpl::RecordMainFrameTiming( | 2143 void LayerTreeHostImpl::RecordMainFrameTiming( |
2143 const BeginFrameArgs& start_of_main_frame_args, | 2144 const BeginFrameArgs& start_of_main_frame_args, |
2144 const BeginFrameArgs& expected_next_main_frame_args) { | 2145 const BeginFrameArgs& expected_next_main_frame_args) { |
2145 std::vector<int64_t> request_ids; | 2146 std::vector<int64_t> request_ids; |
2146 active_tree_->GatherFrameTimingRequestIds(&request_ids); | 2147 active_tree_->GatherFrameTimingRequestIds(&request_ids); |
2147 if (request_ids.empty()) | 2148 if (request_ids.empty()) |
2148 return; | 2149 return; |
2149 | 2150 |
(...skipping 1447 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3597 if (active_tree()) { | 3598 if (active_tree()) { |
3598 LayerAnimationValueProvider* layer = active_tree()->LayerById(layer_id); | 3599 LayerAnimationValueProvider* layer = active_tree()->LayerById(layer_id); |
3599 if (layer) | 3600 if (layer) |
3600 return layer->ScrollOffsetForAnimation(); | 3601 return layer->ScrollOffsetForAnimation(); |
3601 } | 3602 } |
3602 | 3603 |
3603 return gfx::ScrollOffset(); | 3604 return gfx::ScrollOffset(); |
3604 } | 3605 } |
3605 | 3606 |
3606 } // namespace cc | 3607 } // namespace cc |
OLD | NEW |