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

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

Issue 2740493003: Call setNeedsRedraw when scrollbar opacity changes. (Closed)
Patch Set: Fix test that was causing redraw during initialization 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 | « cc/input/scrollbar_animation_controller.cc ('k') | 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 2304 matching lines...) Expand 10 before | Expand all | Expand 10 after
2315 } 2315 }
2316 2316
2317 std::vector<base::Closure> 2317 std::vector<base::Closure>
2318 LayerTreeHostImpl::TakeCompletedImageDecodeCallbacks() { 2318 LayerTreeHostImpl::TakeCompletedImageDecodeCallbacks() {
2319 auto result = std::move(completed_image_decode_callbacks_); 2319 auto result = std::move(completed_image_decode_callbacks_);
2320 completed_image_decode_callbacks_.clear(); 2320 completed_image_decode_callbacks_.clear();
2321 return result; 2321 return result;
2322 } 2322 }
2323 2323
2324 void LayerTreeHostImpl::DidChangeScrollbarVisibility() { 2324 void LayerTreeHostImpl::DidChangeScrollbarVisibility() {
2325 // Need a commit since input handling for scrollbars is handled in Blink so
2326 // we need to communicate to Blink when the compositor shows/hides the
2327 // scrollbars.
2325 client_->SetNeedsCommitOnImplThread(); 2328 client_->SetNeedsCommitOnImplThread();
2326 } 2329 }
2327 2330
2328 void LayerTreeHostImpl::CleanUpTileManagerAndUIResources() { 2331 void LayerTreeHostImpl::CleanUpTileManagerAndUIResources() {
2329 ClearUIResources(); 2332 ClearUIResources();
2330 tile_manager_.FinishTasksAndCleanUp(); 2333 tile_manager_.FinishTasksAndCleanUp();
2331 resource_pool_ = nullptr; 2334 resource_pool_ = nullptr;
2332 single_thread_synchronous_task_graph_runner_ = nullptr; 2335 single_thread_synchronous_task_graph_runner_ = nullptr;
2333 image_decode_cache_ = nullptr; 2336 image_decode_cache_ = nullptr;
2334 2337
(...skipping 1877 matching lines...) Expand 10 before | Expand all | Expand 10 after
4212 worker_context_visibility_ = 4215 worker_context_visibility_ =
4213 worker_context->CacheController()->ClientBecameVisible(); 4216 worker_context->CacheController()->ClientBecameVisible();
4214 } else { 4217 } else {
4215 worker_context->CacheController()->ClientBecameNotVisible( 4218 worker_context->CacheController()->ClientBecameNotVisible(
4216 std::move(worker_context_visibility_)); 4219 std::move(worker_context_visibility_));
4217 } 4220 }
4218 } 4221 }
4219 } 4222 }
4220 4223
4221 } // namespace cc 4224 } // namespace cc
OLDNEW
« no previous file with comments | « cc/input/scrollbar_animation_controller.cc ('k') | cc/trees/layer_tree_host_impl_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698