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

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

Issue 2537683002: cc: Add image decode queue functionality to image manager. (Closed)
Patch Set: image-queue: update Created 4 years 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
« cc/tiles/gpu_image_decode_cache.cc ('K') | « cc/tiles/tile_manager.cc ('k') | no next file » | 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 1826 matching lines...) Expand 10 before | Expand all | Expand 10 after
1837 input_handler_client_->DeliverInputForBeginFrame(); 1837 input_handler_client_->DeliverInputForBeginFrame();
1838 1838
1839 Animate(); 1839 Animate();
1840 1840
1841 for (auto* it : video_frame_controllers_) 1841 for (auto* it : video_frame_controllers_)
1842 it->OnBeginFrame(args); 1842 it->OnBeginFrame(args);
1843 } 1843 }
1844 1844
1845 void LayerTreeHostImpl::DidFinishImplFrame() { 1845 void LayerTreeHostImpl::DidFinishImplFrame() {
1846 current_begin_frame_tracker_.Finish(); 1846 current_begin_frame_tracker_.Finish();
1847 tile_manager_.NotifyFrameFinished();
1847 } 1848 }
1848 1849
1849 void LayerTreeHostImpl::UpdateViewportContainerSizes() { 1850 void LayerTreeHostImpl::UpdateViewportContainerSizes() {
1850 LayerImpl* inner_container = active_tree_->InnerViewportContainerLayer(); 1851 LayerImpl* inner_container = active_tree_->InnerViewportContainerLayer();
1851 LayerImpl* outer_container = active_tree_->OuterViewportContainerLayer(); 1852 LayerImpl* outer_container = active_tree_->OuterViewportContainerLayer();
1852 1853
1853 if (!inner_container) 1854 if (!inner_container)
1854 return; 1855 return;
1855 1856
1856 ViewportAnchor anchor(InnerViewportScrollLayer(), OuterViewportScrollLayer()); 1857 ViewportAnchor anchor(InnerViewportScrollLayer(), OuterViewportScrollLayer());
(...skipping 2228 matching lines...) Expand 10 before | Expand all | Expand 10 after
4085 worker_context_visibility_ = 4086 worker_context_visibility_ =
4086 worker_context->CacheController()->ClientBecameVisible(); 4087 worker_context->CacheController()->ClientBecameVisible();
4087 } else { 4088 } else {
4088 worker_context->CacheController()->ClientBecameNotVisible( 4089 worker_context->CacheController()->ClientBecameNotVisible(
4089 std::move(worker_context_visibility_)); 4090 std::move(worker_context_visibility_));
4090 } 4091 }
4091 } 4092 }
4092 } 4093 }
4093 4094
4094 } // namespace cc 4095 } // namespace cc
OLDNEW
« cc/tiles/gpu_image_decode_cache.cc ('K') | « cc/tiles/tile_manager.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698