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

Side by Side Diff: cc/layer.h

Issue 11472021: cc: Pass LayerTreeHostImpl to LayerImpl constructor (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase 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 PriorityCalculator; 39 class PriorityCalculator;
39 class ResourceUpdateQueue; 40 class ResourceUpdateQueue;
40 class ScrollbarLayer; 41 class ScrollbarLayer;
41 struct AnimationEvent; 42 struct AnimationEvent;
42 struct RenderingStats; 43 struct RenderingStats;
43 44
44 // Base class for composited layers. Special layer types are derived from 45 // Base class for composited layers. Special layer types are derived from
45 // this class. 46 // this class.
46 class CC_EXPORT Layer : public base::RefCounted<Layer> { 47 class CC_EXPORT Layer : public base::RefCounted<Layer> {
47 public: 48 public:
(...skipping 246 matching lines...) Expand 10 before | Expand all | Expand 10 after
294 295
295 // The update rect is the region of the compositor resource that was actuall y updated by the compositor. 296 // The update rect is the region of the compositor resource that was actuall y updated by the compositor.
296 // For layers that may do updating outside the compositor's control (i.e. pl ugin layers), this information 297 // For layers that may do updating outside the compositor's control (i.e. pl ugin layers), this information
297 // is not available and the update rect will remain empty. 298 // is not available and the update rect will remain empty.
298 // Note this rect is in layer space (not content space). 299 // Note this rect is in layer space (not content space).
299 gfx::RectF m_updateRect; 300 gfx::RectF m_updateRect;
300 301
301 scoped_refptr<Layer> m_maskLayer; 302 scoped_refptr<Layer> m_maskLayer;
302 303
303 // Constructs a LayerImpl of the correct runtime type for this Layer type. 304 // Constructs a LayerImpl of the correct runtime type for this Layer type.
304 virtual scoped_ptr<LayerImpl> createLayerImpl(); 305 virtual scoped_ptr<LayerImpl> createLayerImpl(LayerTreeHostImpl* hostImpl);
305 int m_layerId; 306 int m_layerId;
306 307
307 private: 308 private:
308 friend class base::RefCounted<Layer>; 309 friend class base::RefCounted<Layer>;
309 310
310 void setParent(Layer*); 311 void setParent(Layer*);
311 bool hasAncestor(Layer*) const; 312 bool hasAncestor(Layer*) const;
312 bool descendantIsFixedToContainerLayer() const; 313 bool descendantIsFixedToContainerLayer() const;
313 314
314 size_t numChildren() const { return m_children.size(); } 315 size_t numChildren() const { return m_children.size(); }
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
377 WebKit::WebLayerScrollClient* m_layerScrollClient; 378 WebKit::WebLayerScrollClient* m_layerScrollClient;
378 379
379 DrawProperties<Layer, RenderSurface> m_drawProperties; 380 DrawProperties<Layer, RenderSurface> m_drawProperties;
380 }; 381 };
381 382
382 void sortLayers(std::vector<scoped_refptr<Layer> >::iterator, std::vector<scoped _refptr<Layer> >::iterator, void*); 383 void sortLayers(std::vector<scoped_refptr<Layer> >::iterator, std::vector<scoped _refptr<Layer> >::iterator, void*);
383 384
384 } // namespace cc 385 } // namespace cc
385 386
386 #endif // CC_LAYER_H_ 387 #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