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

Side by Side Diff: cc/layer_tree_impl.h

Issue 12217102: cc: Avoid power of two textures. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Lower-case vendor. Created 7 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/layer_tree_host.cc ('k') | cc/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_LAYER_TREE_IMPL_H_ 5 #ifndef CC_LAYER_TREE_IMPL_H_
6 #define CC_LAYER_TREE_IMPL_H_ 6 #define CC_LAYER_TREE_IMPL_H_
7 7
8 #include "base/hash_tables.h" 8 #include "base/hash_tables.h"
9 #include "cc/layer_impl.h" 9 #include "cc/layer_impl.h"
10 10
(...skipping 16 matching lines...) Expand all
27 class LayerTreeDebugState; 27 class LayerTreeDebugState;
28 class LayerTreeHostImpl; 28 class LayerTreeHostImpl;
29 class LayerTreeImpl; 29 class LayerTreeImpl;
30 class LayerTreeSettings; 30 class LayerTreeSettings;
31 class MemoryHistory; 31 class MemoryHistory;
32 class OutputSurface; 32 class OutputSurface;
33 class PaintTimeCounter; 33 class PaintTimeCounter;
34 class Proxy; 34 class Proxy;
35 class ResourceProvider; 35 class ResourceProvider;
36 class TileManager; 36 class TileManager;
37 struct RendererCapabilities;
37 38
38 class CC_EXPORT LayerTreeImpl { 39 class CC_EXPORT LayerTreeImpl {
39 public: 40 public:
40 typedef std::vector<LayerImpl*> LayerList; 41 typedef std::vector<LayerImpl*> LayerList;
41 42
42 static scoped_ptr<LayerTreeImpl> create(LayerTreeHostImpl* layer_tree_host_imp l) 43 static scoped_ptr<LayerTreeImpl> create(LayerTreeHostImpl* layer_tree_host_imp l)
43 { 44 {
44 return make_scoped_ptr(new LayerTreeImpl(layer_tree_host_impl)); 45 return make_scoped_ptr(new LayerTreeImpl(layer_tree_host_impl));
45 } 46 }
46 virtual ~LayerTreeImpl(); 47 virtual ~LayerTreeImpl();
47 48
48 // Methods called by the layer tree that pass-through or access LTHI. 49 // Methods called by the layer tree that pass-through or access LTHI.
49 // --------------------------------------------------------------------------- 50 // ---------------------------------------------------------------------------
50 const LayerTreeSettings& settings() const; 51 const LayerTreeSettings& settings() const;
52 const RendererCapabilities& rendererCapabilities() const;
51 OutputSurface* output_surface() const; 53 OutputSurface* output_surface() const;
52 ResourceProvider* resource_provider() const; 54 ResourceProvider* resource_provider() const;
53 TileManager* tile_manager() const; 55 TileManager* tile_manager() const;
54 FrameRateCounter* frame_rate_counter() const; 56 FrameRateCounter* frame_rate_counter() const;
55 PaintTimeCounter* paint_time_counter() const; 57 PaintTimeCounter* paint_time_counter() const;
56 MemoryHistory* memory_history() const; 58 MemoryHistory* memory_history() const;
57 bool IsActiveTree() const; 59 bool IsActiveTree() const;
58 bool IsPendingTree() const; 60 bool IsPendingTree() const;
59 bool IsRecycleTree() const; 61 bool IsRecycleTree() const;
60 LayerImpl* FindActiveTreeLayerById(int id); 62 LayerImpl* FindActiveTreeLayerById(int id);
(...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after
214 // In impl-side painting mode, this is true when the tree may contain 216 // In impl-side painting mode, this is true when the tree may contain
215 // structural differences relative to the active tree. 217 // structural differences relative to the active tree.
216 bool needs_full_tree_sync_; 218 bool needs_full_tree_sync_;
217 219
218 DISALLOW_COPY_AND_ASSIGN(LayerTreeImpl); 220 DISALLOW_COPY_AND_ASSIGN(LayerTreeImpl);
219 }; 221 };
220 222
221 } 223 }
222 224
223 #endif // CC_LAYER_TREE_IMPL_H_ 225 #endif // CC_LAYER_TREE_IMPL_H_
OLDNEW
« no previous file with comments | « cc/layer_tree_host.cc ('k') | cc/layer_tree_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698