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

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

Issue 23454014: cc: Drop ContextProvider references on the impl thread before quitting (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: callbackcontrolcenter: rebase Created 7 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 | Annotate | Revision Log
« no previous file with comments | « cc/test/pixel_test.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 <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 28 matching lines...) Expand all
39 class DebugRectHistory; 39 class DebugRectHistory;
40 class FrameRateCounter; 40 class FrameRateCounter;
41 class LayerImpl; 41 class LayerImpl;
42 class LayerTreeHostImplTimeSourceAdapter; 42 class LayerTreeHostImplTimeSourceAdapter;
43 class LayerTreeImpl; 43 class LayerTreeImpl;
44 class PageScaleAnimation; 44 class PageScaleAnimation;
45 class PaintTimeCounter; 45 class PaintTimeCounter;
46 class MemoryHistory; 46 class MemoryHistory;
47 class RenderingStatsInstrumentation; 47 class RenderingStatsInstrumentation;
48 class RenderPassDrawQuad; 48 class RenderPassDrawQuad;
49 class TextureMailboxDeleter;
49 class TopControlsManager; 50 class TopControlsManager;
50 class UIResourceBitmap; 51 class UIResourceBitmap;
51 struct RendererCapabilities; 52 struct RendererCapabilities;
52 struct UIResourceRequest; 53 struct UIResourceRequest;
53 54
54 // LayerTreeHost->Proxy callback interface. 55 // LayerTreeHost->Proxy callback interface.
55 class LayerTreeHostImplClient { 56 class LayerTreeHostImplClient {
56 public: 57 public:
57 virtual void DidLoseOutputSurfaceOnImplThread() = 0; 58 virtual void DidLoseOutputSurfaceOnImplThread() = 0;
58 virtual void OnSwapBuffersCompleteOnImplThread() = 0; 59 virtual void OnSwapBuffersCompleteOnImplThread() = 0;
(...skipping 472 matching lines...) Expand 10 before | Expand all | Expand 10 after
531 scoped_ptr<PageScaleAnimation> page_scale_animation_; 532 scoped_ptr<PageScaleAnimation> page_scale_animation_;
532 533
533 // This is used for ticking animations slowly when hidden. 534 // This is used for ticking animations slowly when hidden.
534 scoped_ptr<LayerTreeHostImplTimeSourceAdapter> time_source_client_adapter_; 535 scoped_ptr<LayerTreeHostImplTimeSourceAdapter> time_source_client_adapter_;
535 536
536 scoped_ptr<FrameRateCounter> fps_counter_; 537 scoped_ptr<FrameRateCounter> fps_counter_;
537 scoped_ptr<PaintTimeCounter> paint_time_counter_; 538 scoped_ptr<PaintTimeCounter> paint_time_counter_;
538 scoped_ptr<MemoryHistory> memory_history_; 539 scoped_ptr<MemoryHistory> memory_history_;
539 scoped_ptr<DebugRectHistory> debug_rect_history_; 540 scoped_ptr<DebugRectHistory> debug_rect_history_;
540 541
542 scoped_ptr<TextureMailboxDeleter> texture_mailbox_deleter_;
543
541 // The maximum memory that would be used by the prioritized resource 544 // The maximum memory that would be used by the prioritized resource
542 // manager, if there were no limit on memory usage. 545 // manager, if there were no limit on memory usage.
543 size_t max_memory_needed_bytes_; 546 size_t max_memory_needed_bytes_;
544 547
545 size_t last_sent_memory_visible_bytes_; 548 size_t last_sent_memory_visible_bytes_;
546 size_t last_sent_memory_visible_and_nearby_bytes_; 549 size_t last_sent_memory_visible_and_nearby_bytes_;
547 size_t last_sent_memory_use_bytes_; 550 size_t last_sent_memory_use_bytes_;
548 bool zero_budget_; 551 bool zero_budget_;
549 552
550 // Viewport size passed in from the main thread, in physical pixels. This 553 // Viewport size passed in from the main thread, in physical pixels. This
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
594 597
595 // Optional callback to notify of new tree activations. 598 // Optional callback to notify of new tree activations.
596 base::Closure tree_activation_callback_; 599 base::Closure tree_activation_callback_;
597 600
598 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); 601 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl);
599 }; 602 };
600 603
601 } // namespace cc 604 } // namespace cc
602 605
603 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_ 606 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_
OLDNEW
« no previous file with comments | « cc/test/pixel_test.cc ('k') | cc/trees/layer_tree_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698