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

Side by Side Diff: cc/layer.h

Issue 11270047: cc: Rename TextureUpdate to ResourceUpdate. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Sort includes and forward declarations. Created 8 years, 1 month 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/image_layer.cc ('k') | cc/layer_tree_host.h » ('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 LayerChromium_h 5 #ifndef LayerChromium_h
6 #define LayerChromium_h 6 #define LayerChromium_h
7 7
8 #include "FloatPoint.h" 8 #include "FloatPoint.h"
9 #include "Region.h" 9 #include "Region.h"
10 #include "base/memory/ref_counted.h" 10 #include "base/memory/ref_counted.h"
(...skipping 14 matching lines...) Expand all
25 class SkImageFilter; 25 class SkImageFilter;
26 26
27 namespace cc { 27 namespace cc {
28 28
29 class ActiveAnimation; 29 class ActiveAnimation;
30 struct AnimationEvent; 30 struct AnimationEvent;
31 class LayerAnimationDelegate; 31 class LayerAnimationDelegate;
32 class LayerImpl; 32 class LayerImpl;
33 class LayerTreeHost; 33 class LayerTreeHost;
34 class PriorityCalculator; 34 class PriorityCalculator;
35 class TextureUpdateQueue; 35 class ResourceUpdateQueue;
36 class ScrollbarLayer; 36 class ScrollbarLayer;
37 struct AnimationEvent; 37 struct AnimationEvent;
38 struct RenderingStats; 38 struct RenderingStats;
39 39
40 // Base class for composited layers. Special layer types are derived from 40 // Base class for composited layers. Special layer types are derived from
41 // this class. 41 // this class.
42 class Layer : public base::RefCounted<Layer>, public LayerAnimationControllerCli ent { 42 class Layer : public base::RefCounted<Layer>, public LayerAnimationControllerCli ent {
43 public: 43 public:
44 typedef std::vector<scoped_refptr<Layer> > LayerList; 44 typedef std::vector<scoped_refptr<Layer> > LayerList;
45 45
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after
178 178
179 void setReplicaLayer(Layer*); 179 void setReplicaLayer(Layer*);
180 Layer* replicaLayer() const { return m_replicaLayer.get(); } 180 Layer* replicaLayer() const { return m_replicaLayer.get(); }
181 181
182 bool hasMask() const { return m_maskLayer; } 182 bool hasMask() const { return m_maskLayer; }
183 bool hasReplica() const { return m_replicaLayer; } 183 bool hasReplica() const { return m_replicaLayer; }
184 bool replicaHasMask() const { return m_replicaLayer && (m_maskLayer || m_rep licaLayer->m_maskLayer); } 184 bool replicaHasMask() const { return m_replicaLayer && (m_maskLayer || m_rep licaLayer->m_maskLayer); }
185 185
186 // These methods typically need to be overwritten by derived classes. 186 // These methods typically need to be overwritten by derived classes.
187 virtual bool drawsContent() const; 187 virtual bool drawsContent() const;
188 virtual void update(TextureUpdateQueue&, const OcclusionTracker*, RenderingS tats&) { } 188 virtual void update(ResourceUpdateQueue&, const OcclusionTracker*, Rendering Stats&) { }
189 virtual bool needMoreUpdates(); 189 virtual bool needMoreUpdates();
190 virtual void setIsMask(bool) { } 190 virtual void setIsMask(bool) { }
191 virtual void bindContentsTexture() { } 191 virtual void bindContentsTexture() { }
192 virtual bool needsContentsScale() const; 192 virtual bool needsContentsScale() const;
193 193
194 void setDebugBorderColor(SkColor); 194 void setDebugBorderColor(SkColor);
195 void setDebugBorderWidth(float); 195 void setDebugBorderWidth(float);
196 void setDebugName(const std::string&); 196 void setDebugName(const std::string&);
197 197
198 virtual void pushPropertiesTo(LayerImpl*); 198 virtual void pushPropertiesTo(LayerImpl*);
(...skipping 200 matching lines...) Expand 10 before | Expand all | Expand 10 after
399 399
400 WebKit::WebAnimationDelegate* m_layerAnimationDelegate; 400 WebKit::WebAnimationDelegate* m_layerAnimationDelegate;
401 WebKit::WebLayerScrollClient* m_layerScrollClient; 401 WebKit::WebLayerScrollClient* m_layerScrollClient;
402 }; 402 };
403 403
404 void sortLayers(std::vector<scoped_refptr<Layer> >::iterator, std::vector<scoped _refptr<Layer> >::iterator, void*); 404 void sortLayers(std::vector<scoped_refptr<Layer> >::iterator, std::vector<scoped _refptr<Layer> >::iterator, void*);
405 405
406 } // namespace cc 406 } // namespace cc
407 407
408 #endif 408 #endif
OLDNEW
« no previous file with comments | « cc/image_layer.cc ('k') | cc/layer_tree_host.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698