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

Side by Side Diff: cc/layer.h

Issue 11519018: [cc] Make LayerImpls point at LayerTreeImpl instead of LTHI (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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/io_surface_layer_impl.cc ('k') | cc/layer.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 2010 The Chromium Authors. All rights reserved. 1 // Copyright 2010 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_H_ 5 #ifndef CC_LAYER_H_
6 #define CC_LAYER_H_ 6 #define CC_LAYER_H_
7 7
8 #include <public/WebFilterOperations.h> 8 #include <public/WebFilterOperations.h>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 17 matching lines...) Expand all
28 class WebLayerScrollClient; 28 class WebLayerScrollClient;
29 } 29 }
30 30
31 namespace cc { 31 namespace cc {
32 32
33 class ActiveAnimation; 33 class ActiveAnimation;
34 struct AnimationEvent; 34 struct AnimationEvent;
35 class LayerAnimationDelegate; 35 class LayerAnimationDelegate;
36 class LayerImpl; 36 class LayerImpl;
37 class LayerTreeHost; 37 class LayerTreeHost;
38 class LayerTreeHostImpl; 38 class LayerTreeImpl;
39 class PriorityCalculator; 39 class PriorityCalculator;
40 class ResourceUpdateQueue; 40 class ResourceUpdateQueue;
41 class ScrollbarLayer; 41 class ScrollbarLayer;
42 struct AnimationEvent; 42 struct AnimationEvent;
43 struct RenderingStats; 43 struct RenderingStats;
44 44
45 // Base class for composited layers. Special layer types are derived from 45 // Base class for composited layers. Special layer types are derived from
46 // this class. 46 // this class.
47 class CC_EXPORT Layer : public base::RefCounted<Layer>, public LayerAnimationCon trollerClient { 47 class CC_EXPORT Layer : public base::RefCounted<Layer>, public LayerAnimationCon trollerClient {
48 public: 48 public:
(...skipping 257 matching lines...) Expand 10 before | Expand all | Expand 10 after
306 306
307 // The update rect is the region of the compositor resource that was actuall y updated by the compositor. 307 // The update rect is the region of the compositor resource that was actuall y updated by the compositor.
308 // For layers that may do updating outside the compositor's control (i.e. pl ugin layers), this information 308 // For layers that may do updating outside the compositor's control (i.e. pl ugin layers), this information
309 // is not available and the update rect will remain empty. 309 // is not available and the update rect will remain empty.
310 // Note this rect is in layer space (not content space). 310 // Note this rect is in layer space (not content space).
311 gfx::RectF m_updateRect; 311 gfx::RectF m_updateRect;
312 312
313 scoped_refptr<Layer> m_maskLayer; 313 scoped_refptr<Layer> m_maskLayer;
314 314
315 // Constructs a LayerImpl of the correct runtime type for this Layer type. 315 // Constructs a LayerImpl of the correct runtime type for this Layer type.
316 virtual scoped_ptr<LayerImpl> createLayerImpl(LayerTreeHostImpl* hostImpl); 316 virtual scoped_ptr<LayerImpl> createLayerImpl(LayerTreeImpl* treeImpl);
enne (OOO) 2012/12/11 16:50:14 Sad times all around. Sorry I didn't think about
317 int m_layerId; 317 int m_layerId;
318 318
319 private: 319 private:
320 friend class base::RefCounted<Layer>; 320 friend class base::RefCounted<Layer>;
321 321
322 void setParent(Layer*); 322 void setParent(Layer*);
323 bool hasAncestor(Layer*) const; 323 bool hasAncestor(Layer*) const;
324 bool descendantIsFixedToContainerLayer() const; 324 bool descendantIsFixedToContainerLayer() const;
325 325
326 size_t numChildren() const { return m_children.size(); } 326 size_t numChildren() const { return m_children.size(); }
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
391 WebKit::WebLayerScrollClient* m_layerScrollClient; 391 WebKit::WebLayerScrollClient* m_layerScrollClient;
392 392
393 DrawProperties<Layer, RenderSurface> m_drawProperties; 393 DrawProperties<Layer, RenderSurface> m_drawProperties;
394 }; 394 };
395 395
396 void sortLayers(std::vector<scoped_refptr<Layer> >::iterator, std::vector<scoped _refptr<Layer> >::iterator, void*); 396 void sortLayers(std::vector<scoped_refptr<Layer> >::iterator, std::vector<scoped _refptr<Layer> >::iterator, void*);
397 397
398 } // namespace cc 398 } // namespace cc
399 399
400 #endif // CC_LAYER_H_ 400 #endif // CC_LAYER_H_
OLDNEW
« no previous file with comments | « cc/io_surface_layer_impl.cc ('k') | cc/layer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698