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

Side by Side Diff: cc/layer.h

Issue 12095053: cc: Avoid expensive RenderingStats collection. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: nits 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 | Annotate | Revision Log
« no previous file with comments | « cc/image_layer_updater.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 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 <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 191 matching lines...) Expand 10 before | Expand all | Expand 10 after
202 void setReplicaLayer(Layer*); 202 void setReplicaLayer(Layer*);
203 Layer* replicaLayer() { return m_replicaLayer.get(); } 203 Layer* replicaLayer() { return m_replicaLayer.get(); }
204 const Layer* replicaLayer() const { return m_replicaLayer.get(); } 204 const Layer* replicaLayer() const { return m_replicaLayer.get(); }
205 205
206 bool hasMask() const { return !!m_maskLayer; } 206 bool hasMask() const { return !!m_maskLayer; }
207 bool hasReplica() const { return !!m_replicaLayer; } 207 bool hasReplica() const { return !!m_replicaLayer; }
208 bool replicaHasMask() const { return m_replicaLayer && (m_maskLayer || m_rep licaLayer->m_maskLayer); } 208 bool replicaHasMask() const { return m_replicaLayer && (m_maskLayer || m_rep licaLayer->m_maskLayer); }
209 209
210 // These methods typically need to be overwritten by derived classes. 210 // These methods typically need to be overwritten by derived classes.
211 virtual bool drawsContent() const; 211 virtual bool drawsContent() const;
212 virtual void update(ResourceUpdateQueue&, const OcclusionTracker*, Rendering Stats&) { } 212 virtual void update(ResourceUpdateQueue&, const OcclusionTracker*, Rendering Stats*) { }
213 virtual bool needMoreUpdates(); 213 virtual bool needMoreUpdates();
214 virtual void setIsMask(bool) { } 214 virtual void setIsMask(bool) { }
215 215
216 void setDebugName(const std::string&); 216 void setDebugName(const std::string&);
217 217
218 virtual void pushPropertiesTo(LayerImpl*); 218 virtual void pushPropertiesTo(LayerImpl*);
219 219
220 void clearRenderSurface() { m_drawProperties.render_surface.reset(); } 220 void clearRenderSurface() { m_drawProperties.render_surface.reset(); }
221 void createRenderSurface(); 221 void createRenderSurface();
222 222
(...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after
404 WebKit::WebLayerScrollClient* m_layerScrollClient; 404 WebKit::WebLayerScrollClient* m_layerScrollClient;
405 405
406 DrawProperties<Layer, RenderSurface> m_drawProperties; 406 DrawProperties<Layer, RenderSurface> m_drawProperties;
407 }; 407 };
408 408
409 void sortLayers(std::vector<scoped_refptr<Layer> >::iterator, std::vector<scoped _refptr<Layer> >::iterator, void*); 409 void sortLayers(std::vector<scoped_refptr<Layer> >::iterator, std::vector<scoped _refptr<Layer> >::iterator, void*);
410 410
411 } // namespace cc 411 } // namespace cc
412 412
413 #endif // CC_LAYER_H_ 413 #endif // CC_LAYER_H_
OLDNEW
« no previous file with comments | « cc/image_layer_updater.cc ('k') | cc/layer_tree_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698