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

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

Issue 900073003: cc: Rework how picture layer tiling set gets into raster queues. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: update Created 5 years, 10 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/test/fake_tile_manager_client.cc ('k') | cc/trees/layer_tree_host_impl.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 #ifndef CC_TREES_LAYER_TREE_HOST_IMPL_H_ 5 #ifndef CC_TREES_LAYER_TREE_HOST_IMPL_H_
6 #define CC_TREES_LAYER_TREE_HOST_IMPL_H_ 6 #define CC_TREES_LAYER_TREE_HOST_IMPL_H_
7 7
8 #include <set> 8 #include <set>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 232 matching lines...) Expand 10 before | Expand all | Expand 10 after
243 // Viewport rect in view space used for tiling prioritization. 243 // Viewport rect in view space used for tiling prioritization.
244 const gfx::Rect ViewportRectForTilePriority() const; 244 const gfx::Rect ViewportRectForTilePriority() const;
245 245
246 // RendererClient implementation. 246 // RendererClient implementation.
247 void SetFullRootLayerDamage() override; 247 void SetFullRootLayerDamage() override;
248 248
249 // TileManagerClient implementation. 249 // TileManagerClient implementation.
250 void NotifyReadyToActivate() override; 250 void NotifyReadyToActivate() override;
251 void NotifyReadyToDraw() override; 251 void NotifyReadyToDraw() override;
252 void NotifyTileStateChanged(const Tile* tile) override; 252 void NotifyTileStateChanged(const Tile* tile) override;
253 scoped_ptr<RasterTilePriorityQueue> BuildRasterQueue(
254 TreePriority tree_priority,
255 RasterTilePriorityQueue::Type type) override;
256 scoped_ptr<EvictionTilePriorityQueue> BuildEvictionQueue(
257 TreePriority tree_priority) override;
258 void SetIsLikelyToRequireADraw(bool is_likely_to_require_a_draw) override; 253 void SetIsLikelyToRequireADraw(bool is_likely_to_require_a_draw) override;
254 bool PendingTreeExists() override;
259 255
260 // ScrollbarAnimationControllerClient implementation. 256 // ScrollbarAnimationControllerClient implementation.
261 void PostDelayedScrollbarFade(const base::Closure& start_fade, 257 void PostDelayedScrollbarFade(const base::Closure& start_fade,
262 base::TimeDelta delay) override; 258 base::TimeDelta delay) override;
263 void SetNeedsScrollbarAnimationFrame() override; 259 void SetNeedsScrollbarAnimationFrame() override;
264 260
265 // OutputSurfaceClient implementation. 261 // OutputSurfaceClient implementation.
266 void DeferredInitialize() override; 262 void DeferredInitialize() override;
267 void ReleaseGL() override; 263 void ReleaseGL() override;
268 void CommitVSyncParameters(base::TimeTicks timebase, 264 void CommitVSyncParameters(base::TimeTicks timebase,
(...skipping 218 matching lines...) Expand 10 before | Expand all | Expand 10 after
487 gfx::Rect DeviceViewport() const; 483 gfx::Rect DeviceViewport() const;
488 gfx::Rect DeviceClip() const; 484 gfx::Rect DeviceClip() const;
489 485
490 // When a SwapPromiseMonitor is created on the impl thread, it calls 486 // When a SwapPromiseMonitor is created on the impl thread, it calls
491 // InsertSwapPromiseMonitor() to register itself with LayerTreeHostImpl. 487 // InsertSwapPromiseMonitor() to register itself with LayerTreeHostImpl.
492 // When the monitor is destroyed, it calls RemoveSwapPromiseMonitor() 488 // When the monitor is destroyed, it calls RemoveSwapPromiseMonitor()
493 // to unregister itself. 489 // to unregister itself.
494 void InsertSwapPromiseMonitor(SwapPromiseMonitor* monitor); 490 void InsertSwapPromiseMonitor(SwapPromiseMonitor* monitor);
495 void RemoveSwapPromiseMonitor(SwapPromiseMonitor* monitor); 491 void RemoveSwapPromiseMonitor(SwapPromiseMonitor* monitor);
496 492
497 void GetPictureLayerImplPairs(std::vector<PictureLayerImpl::Pair>* layers,
498 bool need_valid_tile_priorities) const;
499
500 void SetRequiresHighResToDraw() { requires_high_res_to_draw_ = true; } 493 void SetRequiresHighResToDraw() { requires_high_res_to_draw_ = true; }
501 void ResetRequiresHighResToDraw() { requires_high_res_to_draw_ = false; } 494 void ResetRequiresHighResToDraw() { requires_high_res_to_draw_ = false; }
502 bool RequiresHighResToDraw() const { return requires_high_res_to_draw_; } 495 bool RequiresHighResToDraw() const { return requires_high_res_to_draw_; }
503 496
504 // Only valid for synchronous (non-scheduled) single-threaded case. 497 // Only valid for synchronous (non-scheduled) single-threaded case.
505 void SynchronouslyInitializeAllTiles(); 498 void SynchronouslyInitializeAllTiles();
506 499
507 virtual scoped_ptr<Rasterizer> CreateRasterizer(); 500 virtual scoped_ptr<Rasterizer> CreateRasterizer();
508 virtual void CreateResourceAndTileTaskWorkerPool( 501 virtual void CreateResourceAndTileTaskWorkerPool(
509 scoped_ptr<TileTaskWorkerPool>* tile_task_worker_pool, 502 scoped_ptr<TileTaskWorkerPool>* tile_task_worker_pool,
(...skipping 210 matching lines...) Expand 10 before | Expand all | Expand 10 after
720 scoped_ptr<TaskGraphRunner> single_thread_synchronous_task_graph_runner_; 713 scoped_ptr<TaskGraphRunner> single_thread_synchronous_task_graph_runner_;
721 714
722 // Optional callback to notify of new tree activations. 715 // Optional callback to notify of new tree activations.
723 base::Closure tree_activation_callback_; 716 base::Closure tree_activation_callback_;
724 717
725 SharedBitmapManager* shared_bitmap_manager_; 718 SharedBitmapManager* shared_bitmap_manager_;
726 gpu::GpuMemoryBufferManager* gpu_memory_buffer_manager_; 719 gpu::GpuMemoryBufferManager* gpu_memory_buffer_manager_;
727 int id_; 720 int id_;
728 721
729 std::set<SwapPromiseMonitor*> swap_promise_monitor_; 722 std::set<SwapPromiseMonitor*> swap_promise_monitor_;
730 std::vector<PictureLayerImpl::Pair> picture_layer_pairs_;
731 723
732 bool requires_high_res_to_draw_; 724 bool requires_high_res_to_draw_;
733 bool is_likely_to_require_a_draw_; 725 bool is_likely_to_require_a_draw_;
734 726
735 scoped_ptr<FrameTimingTracker> frame_timing_tracker_; 727 scoped_ptr<FrameTimingTracker> frame_timing_tracker_;
736 728
737 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); 729 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl);
738 }; 730 };
739 731
740 } // namespace cc 732 } // namespace cc
741 733
742 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_ 734 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_
OLDNEW
« no previous file with comments | « cc/test/fake_tile_manager_client.cc ('k') | cc/trees/layer_tree_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698