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

Side by Side Diff: cc/layer_tree_host.h

Issue 11659004: Add support for tagging layers. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: exposing enum in cc. Created 8 years 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/layer.cc ('k') | cc/layer_tree_host.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_LAYER_TREE_HOST_H_ 5 #ifndef CC_LAYER_TREE_HOST_H_
6 #define CC_LAYER_TREE_HOST_H_ 6 #define CC_LAYER_TREE_HOST_H_
7 7
8 #include <limits> 8 #include <limits>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 183 matching lines...) Expand 10 before | Expand all | Expand 10 after
194 194
195 void setDeviceScaleFactor(float); 195 void setDeviceScaleFactor(float);
196 float deviceScaleFactor() const { return m_deviceScaleFactor; } 196 float deviceScaleFactor() const { return m_deviceScaleFactor; }
197 197
198 HeadsUpDisplayLayer* hudLayer() const { return m_hudLayer.get(); } 198 HeadsUpDisplayLayer* hudLayer() const { return m_hudLayer.get(); }
199 199
200 Proxy* proxy() const { return m_proxy.get(); } 200 Proxy* proxy() const { return m_proxy.get(); }
201 201
202 AnimationRegistrar* animationRegistrar() const { return m_animationRegistrar .get(); } 202 AnimationRegistrar* animationRegistrar() const { return m_animationRegistrar .get(); }
203 203
204 Layer* getFirstLayerWithTags(unsigned int tags) const;
205
204 protected: 206 protected:
205 LayerTreeHost(LayerTreeHostClient*, const LayerTreeSettings&); 207 LayerTreeHost(LayerTreeHostClient*, const LayerTreeSettings&);
206 bool initialize(scoped_ptr<Thread> implThread); 208 bool initialize(scoped_ptr<Thread> implThread);
207 bool initializeForTesting(scoped_ptr<Proxy> proxyForTesting); 209 bool initializeForTesting(scoped_ptr<Proxy> proxyForTesting);
208 210
209 private: 211 private:
210 typedef std::vector<scoped_refptr<Layer> > LayerList; 212 typedef std::vector<scoped_refptr<Layer> > LayerList;
211 213
212 bool initializeProxy(scoped_ptr<Proxy> proxy); 214 bool initializeProxy(scoped_ptr<Proxy> proxy);
213 void initializeRenderer(); 215 void initializeRenderer();
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
278 scoped_ptr<AnimationRegistrar> m_animationRegistrar; 280 scoped_ptr<AnimationRegistrar> m_animationRegistrar;
279 281
280 static bool s_needsFilterContext; 282 static bool s_needsFilterContext;
281 283
282 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost); 284 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost);
283 }; 285 };
284 286
285 } // namespace cc 287 } // namespace cc
286 288
287 #endif // CC_LAYER_TREE_HOST_H_ 289 #endif // CC_LAYER_TREE_HOST_H_
OLDNEW
« no previous file with comments | « cc/layer.cc ('k') | cc/layer_tree_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698