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

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

Issue 2336853002: cc: Plumb device color space through to rasterization (Closed)
Patch Set: Remove damage Created 4 years, 3 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/trees/layer_tree.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 <stddef.h> 8 #include <stddef.h>
9 9
10 #include <bitset> 10 #include <bitset>
(...skipping 336 matching lines...) Expand 10 before | Expand all | Expand 10 after
347 void NotifyReadyToActivate() override; 347 void NotifyReadyToActivate() override;
348 void NotifyReadyToDraw() override; 348 void NotifyReadyToDraw() override;
349 void NotifyAllTileTasksCompleted() override; 349 void NotifyAllTileTasksCompleted() override;
350 void NotifyTileStateChanged(const Tile* tile) override; 350 void NotifyTileStateChanged(const Tile* tile) override;
351 std::unique_ptr<RasterTilePriorityQueue> BuildRasterQueue( 351 std::unique_ptr<RasterTilePriorityQueue> BuildRasterQueue(
352 TreePriority tree_priority, 352 TreePriority tree_priority,
353 RasterTilePriorityQueue::Type type) override; 353 RasterTilePriorityQueue::Type type) override;
354 std::unique_ptr<EvictionTilePriorityQueue> BuildEvictionQueue( 354 std::unique_ptr<EvictionTilePriorityQueue> BuildEvictionQueue(
355 TreePriority tree_priority) override; 355 TreePriority tree_priority) override;
356 void SetIsLikelyToRequireADraw(bool is_likely_to_require_a_draw) override; 356 void SetIsLikelyToRequireADraw(bool is_likely_to_require_a_draw) override;
357 gfx::ColorSpace GetTileColorSpace() const override;
357 358
358 // ScrollbarAnimationControllerClient implementation. 359 // ScrollbarAnimationControllerClient implementation.
359 void PostDelayedScrollbarAnimationTask(const base::Closure& task, 360 void PostDelayedScrollbarAnimationTask(const base::Closure& task,
360 base::TimeDelta delay) override; 361 base::TimeDelta delay) override;
361 void SetNeedsAnimateForScrollbarAnimation() override; 362 void SetNeedsAnimateForScrollbarAnimation() override;
362 void SetNeedsRedrawForScrollbarAnimation() override; 363 void SetNeedsRedrawForScrollbarAnimation() override;
363 ScrollbarSet ScrollbarsFor(int scroll_layer_id) const override; 364 ScrollbarSet ScrollbarsFor(int scroll_layer_id) const override;
364 365
365 // VideoBeginFrameSource implementation. 366 // VideoBeginFrameSource implementation.
366 void AddVideoFrameController(VideoFrameController* controller) override; 367 void AddVideoFrameController(VideoFrameController* controller) override;
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
427 virtual void DidFinishImplFrame(); 428 virtual void DidFinishImplFrame();
428 void DidModifyTilePriorities(); 429 void DidModifyTilePriorities();
429 430
430 LayerTreeImpl* active_tree() { return active_tree_.get(); } 431 LayerTreeImpl* active_tree() { return active_tree_.get(); }
431 const LayerTreeImpl* active_tree() const { return active_tree_.get(); } 432 const LayerTreeImpl* active_tree() const { return active_tree_.get(); }
432 LayerTreeImpl* pending_tree() { return pending_tree_.get(); } 433 LayerTreeImpl* pending_tree() { return pending_tree_.get(); }
433 const LayerTreeImpl* pending_tree() const { return pending_tree_.get(); } 434 const LayerTreeImpl* pending_tree() const { return pending_tree_.get(); }
434 LayerTreeImpl* recycle_tree() { return recycle_tree_.get(); } 435 LayerTreeImpl* recycle_tree() { return recycle_tree_.get(); }
435 const LayerTreeImpl* recycle_tree() const { return recycle_tree_.get(); } 436 const LayerTreeImpl* recycle_tree() const { return recycle_tree_.get(); }
436 // Returns the tree LTH synchronizes with. 437 // Returns the tree LTH synchronizes with.
437 LayerTreeImpl* sync_tree() { 438 LayerTreeImpl* sync_tree() const {
438 // TODO(enne): This is bogus. It should return based on the value of 439 // TODO(enne): This is bogus. It should return based on the value of
439 // CommitToActiveTree() and not whether the pending tree exists. 440 // CommitToActiveTree() and not whether the pending tree exists.
440 return pending_tree_ ? pending_tree_.get() : active_tree_.get(); 441 return pending_tree_ ? pending_tree_.get() : active_tree_.get();
441 } 442 }
442 virtual void CreatePendingTree(); 443 virtual void CreatePendingTree();
443 virtual void ActivateSyncTree(); 444 virtual void ActivateSyncTree();
444 445
445 // Shortcuts to layers on the active tree. 446 // Shortcuts to layers on the active tree.
446 LayerImpl* InnerViewportScrollLayer() const; 447 LayerImpl* InnerViewportScrollLayer() const;
447 LayerImpl* OuterViewportScrollLayer() const; 448 LayerImpl* OuterViewportScrollLayer() const;
(...skipping 400 matching lines...) Expand 10 before | Expand all | Expand 10 after
848 849
849 std::unique_ptr<PendingTreeDurationHistogramTimer> 850 std::unique_ptr<PendingTreeDurationHistogramTimer>
850 pending_tree_duration_timer_; 851 pending_tree_duration_timer_;
851 852
852 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); 853 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl);
853 }; 854 };
854 855
855 } // namespace cc 856 } // namespace cc
856 857
857 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_ 858 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_
OLDNEW
« no previous file with comments | « cc/trees/layer_tree.cc ('k') | cc/trees/layer_tree_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698