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

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

Issue 20185002: ContextProvider in OutputSurface (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: contextprovider: don't access Context3d() in OutputSurface contructors, it's not bound yet Created 7 years, 4 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/trees/layer_tree_host_unittest_delegated.cc ('k') | cc/trees/layer_tree_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 2012 The Chromium Authors. All rights reserved. 1 // Copyright 2012 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_IMPL_H_ 5 #ifndef CC_TREES_LAYER_TREE_IMPL_H_
6 #define CC_TREES_LAYER_TREE_IMPL_H_ 6 #define CC_TREES_LAYER_TREE_IMPL_H_
7 7
8 #include <list> 8 #include <list>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 10 matching lines...) Expand all
21 struct hash<cc::LayerImpl*> { 21 struct hash<cc::LayerImpl*> {
22 size_t operator()(cc::LayerImpl* ptr) const { 22 size_t operator()(cc::LayerImpl* ptr) const {
23 return hash<size_t>()(reinterpret_cast<size_t>(ptr)); 23 return hash<size_t>()(reinterpret_cast<size_t>(ptr));
24 } 24 }
25 }; 25 };
26 } // namespace BASE_HASH_NAMESPACE 26 } // namespace BASE_HASH_NAMESPACE
27 #endif // COMPILER 27 #endif // COMPILER
28 28
29 namespace cc { 29 namespace cc {
30 30
31 class ContextProvider;
31 class DebugRectHistory; 32 class DebugRectHistory;
32 class FrameRateCounter; 33 class FrameRateCounter;
33 class HeadsUpDisplayLayerImpl; 34 class HeadsUpDisplayLayerImpl;
34 class LayerTreeDebugState; 35 class LayerTreeDebugState;
35 class LayerTreeHostImpl; 36 class LayerTreeHostImpl;
36 class LayerTreeImpl; 37 class LayerTreeImpl;
37 class LayerTreeSettings; 38 class LayerTreeSettings;
38 class MemoryHistory; 39 class MemoryHistory;
39 class OutputSurface; 40 class OutputSurface;
40 class PaintTimeCounter; 41 class PaintTimeCounter;
(...skipping 10 matching lines...) Expand all
51 static scoped_ptr<LayerTreeImpl> create( 52 static scoped_ptr<LayerTreeImpl> create(
52 LayerTreeHostImpl* layer_tree_host_impl) { 53 LayerTreeHostImpl* layer_tree_host_impl) {
53 return make_scoped_ptr(new LayerTreeImpl(layer_tree_host_impl)); 54 return make_scoped_ptr(new LayerTreeImpl(layer_tree_host_impl));
54 } 55 }
55 virtual ~LayerTreeImpl(); 56 virtual ~LayerTreeImpl();
56 57
57 // Methods called by the layer tree that pass-through or access LTHI. 58 // Methods called by the layer tree that pass-through or access LTHI.
58 // --------------------------------------------------------------------------- 59 // ---------------------------------------------------------------------------
59 const LayerTreeSettings& settings() const; 60 const LayerTreeSettings& settings() const;
60 const RendererCapabilities& GetRendererCapabilities() const; 61 const RendererCapabilities& GetRendererCapabilities() const;
62 ContextProvider* context_provider() const;
61 OutputSurface* output_surface() const; 63 OutputSurface* output_surface() const;
62 ResourceProvider* resource_provider() const; 64 ResourceProvider* resource_provider() const;
63 TileManager* tile_manager() const; 65 TileManager* tile_manager() const;
64 FrameRateCounter* frame_rate_counter() const; 66 FrameRateCounter* frame_rate_counter() const;
65 PaintTimeCounter* paint_time_counter() const; 67 PaintTimeCounter* paint_time_counter() const;
66 MemoryHistory* memory_history() const; 68 MemoryHistory* memory_history() const;
67 bool IsActiveTree() const; 69 bool IsActiveTree() const;
68 bool IsPendingTree() const; 70 bool IsPendingTree() const;
69 bool IsRecycleTree() const; 71 bool IsRecycleTree() const;
70 LayerImpl* FindActiveTreeLayerById(int id); 72 LayerImpl* FindActiveTreeLayerById(int id);
(...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after
252 254
253 UIResourceRequestQueue ui_resource_request_queue_; 255 UIResourceRequestQueue ui_resource_request_queue_;
254 256
255 private: 257 private:
256 DISALLOW_COPY_AND_ASSIGN(LayerTreeImpl); 258 DISALLOW_COPY_AND_ASSIGN(LayerTreeImpl);
257 }; 259 };
258 260
259 } // namespace cc 261 } // namespace cc
260 262
261 #endif // CC_TREES_LAYER_TREE_IMPL_H_ 263 #endif // CC_TREES_LAYER_TREE_IMPL_H_
OLDNEW
« no previous file with comments | « cc/trees/layer_tree_host_unittest_delegated.cc ('k') | cc/trees/layer_tree_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698