Chromium Code Reviews| 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 2276 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 2287 "LayerTreeHostImpl::SetLayerTreeMutator"); | 2287 "LayerTreeHostImpl::SetLayerTreeMutator"); |
| 2288 mutator_ = std::move(mutator); | 2288 mutator_ = std::move(mutator); |
| 2289 mutator_->SetClient(this); | 2289 mutator_->SetClient(this); |
| 2290 } | 2290 } |
| 2291 | 2291 |
| 2292 LayerImpl* LayerTreeHostImpl::ViewportMainScrollLayer() { | 2292 LayerImpl* LayerTreeHostImpl::ViewportMainScrollLayer() { |
| 2293 return viewport()->MainScrollLayer(); | 2293 return viewport()->MainScrollLayer(); |
| 2294 } | 2294 } |
| 2295 | 2295 |
| 2296 void LayerTreeHostImpl::DidChangeScrollbarVisibility() { | 2296 void LayerTreeHostImpl::DidChangeScrollbarVisibility() { |
| 2297 SetNeedsRedraw(); | |
| 2297 client_->SetNeedsCommitOnImplThread(); | 2298 client_->SetNeedsCommitOnImplThread(); |
|
weiliangc
2017/03/07 22:53:34
For setNeedsRedraw to work correctly we need to ma
bokan
2017/03/07 23:19:49
I'm not sure what you mean about utilising animati
weiliangc
2017/03/13 20:11:09
I was wondering why when the opacity is changed an
bokan
2017/03/13 21:56:23
I think code changed so your link is pointing to a
| |
| 2298 } | 2299 } |
| 2299 | 2300 |
| 2300 void LayerTreeHostImpl::CleanUpTileManagerAndUIResources() { | 2301 void LayerTreeHostImpl::CleanUpTileManagerAndUIResources() { |
| 2301 ClearUIResources(); | 2302 ClearUIResources(); |
| 2302 tile_manager_.FinishTasksAndCleanUp(); | 2303 tile_manager_.FinishTasksAndCleanUp(); |
| 2303 resource_pool_ = nullptr; | 2304 resource_pool_ = nullptr; |
| 2304 single_thread_synchronous_task_graph_runner_ = nullptr; | 2305 single_thread_synchronous_task_graph_runner_ = nullptr; |
| 2305 image_decode_cache_ = nullptr; | 2306 image_decode_cache_ = nullptr; |
| 2306 | 2307 |
| 2307 // We've potentially just freed a large number of resources on our various | 2308 // We've potentially just freed a large number of resources on our various |
| (...skipping 1852 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 4160 worker_context_visibility_ = | 4161 worker_context_visibility_ = |
| 4161 worker_context->CacheController()->ClientBecameVisible(); | 4162 worker_context->CacheController()->ClientBecameVisible(); |
| 4162 } else { | 4163 } else { |
| 4163 worker_context->CacheController()->ClientBecameNotVisible( | 4164 worker_context->CacheController()->ClientBecameNotVisible( |
| 4164 std::move(worker_context_visibility_)); | 4165 std::move(worker_context_visibility_)); |
| 4165 } | 4166 } |
| 4166 } | 4167 } |
| 4167 } | 4168 } |
| 4168 | 4169 |
| 4169 } // namespace cc | 4170 } // namespace cc |
| OLD | NEW |