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

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

Issue 2740493003: Call setNeedsRedraw when scrollbar opacity changes. (Closed)
Patch Set: Created 3 years, 9 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 | « no previous file | cc/trees/layer_tree_host_impl_unittest.cc » ('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_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
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
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
OLDNEW
« no previous file with comments | « no previous file | cc/trees/layer_tree_host_impl_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698