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

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

Issue 2927573003: cc: Disallow img.decode images from being checker imaged. (Closed)
Patch Set: update Created 3 years, 6 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/tiles/tile_manager.h ('k') | cc/trees/layer_tree_host_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 2369 matching lines...) Expand 10 before | Expand all | Expand 10 after
2380 LayerImpl* LayerTreeHostImpl::ViewportMainScrollLayer() { 2380 LayerImpl* LayerTreeHostImpl::ViewportMainScrollLayer() {
2381 return viewport()->MainScrollLayer(); 2381 return viewport()->MainScrollLayer();
2382 } 2382 }
2383 2383
2384 void LayerTreeHostImpl::QueueImageDecode( 2384 void LayerTreeHostImpl::QueueImageDecode(
2385 const PaintImage& image, 2385 const PaintImage& image,
2386 const base::Callback<void(bool)>& embedder_callback) { 2386 const base::Callback<void(bool)>& embedder_callback) {
2387 decoded_image_tracker_.QueueImageDecode( 2387 decoded_image_tracker_.QueueImageDecode(
2388 image, base::Bind(&LayerTreeHostImpl::ImageDecodeFinished, 2388 image, base::Bind(&LayerTreeHostImpl::ImageDecodeFinished,
2389 base::Unretained(this), embedder_callback)); 2389 base::Unretained(this), embedder_callback));
2390 tile_manager_.checker_image_tracker().DisallowCheckeringForImage(image);
2390 } 2391 }
2391 2392
2392 void LayerTreeHostImpl::ImageDecodeFinished( 2393 void LayerTreeHostImpl::ImageDecodeFinished(
2393 const base::Callback<void(bool)>& embedder_callback, 2394 const base::Callback<void(bool)>& embedder_callback,
2394 bool decode_succeeded) { 2395 bool decode_succeeded) {
2395 completed_image_decode_callbacks_.emplace_back( 2396 completed_image_decode_callbacks_.emplace_back(
2396 base::Bind(embedder_callback, decode_succeeded)); 2397 base::Bind(embedder_callback, decode_succeeded));
2397 client_->NotifyImageDecodeRequestFinished(); 2398 client_->NotifyImageDecodeRequestFinished();
2398 } 2399 }
2399 2400
(...skipping 1899 matching lines...) Expand 10 before | Expand all | Expand 10 after
4299 4300
4300 void LayerTreeHostImpl::ShowScrollbarsForImplScroll(ElementId element_id) { 4301 void LayerTreeHostImpl::ShowScrollbarsForImplScroll(ElementId element_id) {
4301 if (!element_id) 4302 if (!element_id)
4302 return; 4303 return;
4303 if (ScrollbarAnimationController* animation_controller = 4304 if (ScrollbarAnimationController* animation_controller =
4304 ScrollbarAnimationControllerForElementId(element_id)) 4305 ScrollbarAnimationControllerForElementId(element_id))
4305 animation_controller->DidScrollUpdate(); 4306 animation_controller->DidScrollUpdate();
4306 } 4307 }
4307 4308
4308 } // namespace cc 4309 } // namespace cc
OLDNEW
« no previous file with comments | « cc/tiles/tile_manager.h ('k') | cc/trees/layer_tree_host_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698