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

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

Issue 406183002: Revert of cc: Change TileManager iterators to be queues. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 5 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 | Annotate | Revision Log
« 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 <list> 8 #include <list>
9 #include <set> 9 #include <set>
10 #include <string> 10 #include <string>
(...skipping 23 matching lines...) Expand all
34 #include "cc/scheduler/draw_result.h" 34 #include "cc/scheduler/draw_result.h"
35 #include "skia/ext/refptr.h" 35 #include "skia/ext/refptr.h"
36 #include "third_party/skia/include/core/SkColor.h" 36 #include "third_party/skia/include/core/SkColor.h"
37 #include "ui/gfx/rect.h" 37 #include "ui/gfx/rect.h"
38 38
39 namespace cc { 39 namespace cc {
40 40
41 class CompletionEvent; 41 class CompletionEvent;
42 class CompositorFrameMetadata; 42 class CompositorFrameMetadata;
43 class DebugRectHistory; 43 class DebugRectHistory;
44 class EvictionTilePriorityQueue;
45 class FrameRateCounter; 44 class FrameRateCounter;
46 class LayerImpl; 45 class LayerImpl;
47 class LayerTreeHostImplTimeSourceAdapter; 46 class LayerTreeHostImplTimeSourceAdapter;
48 class LayerTreeImpl; 47 class LayerTreeImpl;
49 class MemoryHistory; 48 class MemoryHistory;
50 class PageScaleAnimation; 49 class PageScaleAnimation;
51 class PaintTimeCounter; 50 class PaintTimeCounter;
52 class PictureLayerImpl; 51 class PictureLayerImpl;
53 class RasterTilePriorityQueue;
54 class RasterWorkerPool; 52 class RasterWorkerPool;
55 class RenderPassDrawQuad; 53 class RenderPassDrawQuad;
56 class RenderingStatsInstrumentation; 54 class RenderingStatsInstrumentation;
57 class ResourcePool; 55 class ResourcePool;
58 class ScrollbarLayerImplBase; 56 class ScrollbarLayerImplBase;
59 class TextureMailboxDeleter; 57 class TextureMailboxDeleter;
60 class TopControlsManager; 58 class TopControlsManager;
61 class UIResourceBitmap; 59 class UIResourceBitmap;
62 class UIResourceRequest; 60 class UIResourceRequest;
63 struct RendererCapabilitiesImpl; 61 struct RendererCapabilitiesImpl;
(...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after
228 // excludes the URL bar and non-overlay scrollbars and is in DIP (and 226 // excludes the URL bar and non-overlay scrollbars and is in DIP (and
229 // invariant relative to page scale). 227 // invariant relative to page scale).
230 gfx::SizeF UnscaledScrollableViewportSize() const; 228 gfx::SizeF UnscaledScrollableViewportSize() const;
231 float VerticalAdjust() const; 229 float VerticalAdjust() const;
232 230
233 // RendererClient implementation. 231 // RendererClient implementation.
234 virtual void SetFullRootLayerDamage() OVERRIDE; 232 virtual void SetFullRootLayerDamage() OVERRIDE;
235 virtual void RunOnDemandRasterTask(Task* on_demand_raster_task) OVERRIDE; 233 virtual void RunOnDemandRasterTask(Task* on_demand_raster_task) OVERRIDE;
236 234
237 // TileManagerClient implementation. 235 // TileManagerClient implementation.
238 virtual const std::vector<PictureLayerImpl*>& GetPictureLayers() 236 virtual const std::vector<PictureLayerImpl*>& GetPictureLayers() OVERRIDE;
239 const OVERRIDE;
240 virtual void NotifyReadyToActivate() OVERRIDE; 237 virtual void NotifyReadyToActivate() OVERRIDE;
241 virtual void NotifyTileStateChanged(const Tile* tile) OVERRIDE; 238 virtual void NotifyTileStateChanged(const Tile* tile) OVERRIDE;
242 virtual void BuildRasterQueue(RasterTilePriorityQueue* queue,
243 TreePriority tree_priority) OVERRIDE;
244 virtual void BuildEvictionQueue(EvictionTilePriorityQueue* queue,
245 TreePriority tree_priority) OVERRIDE;
246 239
247 // ScrollbarAnimationControllerClient implementation. 240 // ScrollbarAnimationControllerClient implementation.
248 virtual void PostDelayedScrollbarFade(const base::Closure& start_fade, 241 virtual void PostDelayedScrollbarFade(const base::Closure& start_fade,
249 base::TimeDelta delay) OVERRIDE; 242 base::TimeDelta delay) OVERRIDE;
250 virtual void SetNeedsScrollbarAnimationFrame() OVERRIDE; 243 virtual void SetNeedsScrollbarAnimationFrame() OVERRIDE;
251 244
252 // OutputSurfaceClient implementation. 245 // OutputSurfaceClient implementation.
253 virtual void DeferredInitialize() OVERRIDE; 246 virtual void DeferredInitialize() OVERRIDE;
254 virtual void ReleaseGL() OVERRIDE; 247 virtual void ReleaseGL() OVERRIDE;
255 virtual void CommitVSyncParameters(base::TimeTicks timebase, 248 virtual void CommitVSyncParameters(base::TimeTicks timebase,
(...skipping 207 matching lines...) Expand 10 before | Expand all | Expand 10 after
463 // When a SwapPromiseMonitor is created on the impl thread, it calls 456 // When a SwapPromiseMonitor is created on the impl thread, it calls
464 // InsertSwapPromiseMonitor() to register itself with LayerTreeHostImpl. 457 // InsertSwapPromiseMonitor() to register itself with LayerTreeHostImpl.
465 // When the monitor is destroyed, it calls RemoveSwapPromiseMonitor() 458 // When the monitor is destroyed, it calls RemoveSwapPromiseMonitor()
466 // to unregister itself. 459 // to unregister itself.
467 void InsertSwapPromiseMonitor(SwapPromiseMonitor* monitor); 460 void InsertSwapPromiseMonitor(SwapPromiseMonitor* monitor);
468 void RemoveSwapPromiseMonitor(SwapPromiseMonitor* monitor); 461 void RemoveSwapPromiseMonitor(SwapPromiseMonitor* monitor);
469 462
470 void RegisterPictureLayerImpl(PictureLayerImpl* layer); 463 void RegisterPictureLayerImpl(PictureLayerImpl* layer);
471 void UnregisterPictureLayerImpl(PictureLayerImpl* layer); 464 void UnregisterPictureLayerImpl(PictureLayerImpl* layer);
472 465
473 void GetPictureLayerImplPairs(
474 std::vector<PictureLayerImpl::Pair>* layers) const;
475
476 protected: 466 protected:
477 LayerTreeHostImpl( 467 LayerTreeHostImpl(
478 const LayerTreeSettings& settings, 468 const LayerTreeSettings& settings,
479 LayerTreeHostImplClient* client, 469 LayerTreeHostImplClient* client,
480 Proxy* proxy, 470 Proxy* proxy,
481 RenderingStatsInstrumentation* rendering_stats_instrumentation, 471 RenderingStatsInstrumentation* rendering_stats_instrumentation,
482 SharedBitmapManager* manager, 472 SharedBitmapManager* manager,
483 int id); 473 int id);
484 474
485 gfx::SizeF ComputeInnerViewportContainerSize() const; 475 gfx::SizeF ComputeInnerViewportContainerSize() const;
(...skipping 207 matching lines...) Expand 10 before | Expand all | Expand 10 after
693 base::Closure tree_activation_callback_; 683 base::Closure tree_activation_callback_;
694 684
695 SharedBitmapManager* shared_bitmap_manager_; 685 SharedBitmapManager* shared_bitmap_manager_;
696 int id_; 686 int id_;
697 687
698 std::set<SwapPromiseMonitor*> swap_promise_monitor_; 688 std::set<SwapPromiseMonitor*> swap_promise_monitor_;
699 689
700 size_t transfer_buffer_memory_limit_; 690 size_t transfer_buffer_memory_limit_;
701 691
702 std::vector<PictureLayerImpl*> picture_layers_; 692 std::vector<PictureLayerImpl*> picture_layers_;
703 std::vector<PictureLayerImpl::Pair> picture_layer_pairs_;
704 693
705 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); 694 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl);
706 }; 695 };
707 696
708 } // namespace cc 697 } // namespace cc
709 698
710 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_ 699 #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