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

Unified Diff: cc/damage_tracker.h

Issue 11189043: cc: Rename cc classes and members to match filenames (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 2 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 side-by-side diff with in-line comments
Download patch
Index: cc/damage_tracker.h
diff --git a/cc/damage_tracker.h b/cc/damage_tracker.h
index 5121b064e8d28219798b8ef1e02a8d8b8e4f10c6..f72c3f03f366acd3426e048116874476f5b21d60 100644
--- a/cc/damage_tracker.h
+++ b/cc/damage_tracker.h
@@ -16,35 +16,35 @@ class WebFilterOperations;
namespace cc {
-class CCLayerImpl;
-class CCRenderSurface;
+class LayerImpl;
+class RenderSurfaceImpl;
-// Computes the region where pixels have actually changed on a RenderSurface. This region is used
+// Computes the region where pixels have actually changed on a RenderSurfaceImpl. This region is used
// to scissor what is actually drawn to the screen to save GPU computation and bandwidth.
-class CCDamageTracker {
+class DamageTracker {
public:
- static scoped_ptr<CCDamageTracker> create();
- ~CCDamageTracker();
+ static scoped_ptr<DamageTracker> create();
+ ~DamageTracker();
void didDrawDamagedArea() { m_currentDamageRect = FloatRect(); }
void forceFullDamageNextUpdate() { m_forceFullDamageNextUpdate = true; }
- void updateDamageTrackingState(const std::vector<CCLayerImpl*>& layerList, int targetSurfaceLayerID, bool targetSurfacePropertyChangedOnlyFromDescendant, const IntRect& targetSurfaceContentRect, CCLayerImpl* targetSurfaceMaskLayer, const WebKit::WebFilterOperations&);
+ void updateDamageTrackingState(const std::vector<LayerImpl*>& layerList, int targetSurfaceLayerID, bool targetSurfacePropertyChangedOnlyFromDescendant, const IntRect& targetSurfaceContentRect, LayerImpl* targetSurfaceMaskLayer, const WebKit::WebFilterOperations&);
const FloatRect& currentDamageRect() { return m_currentDamageRect; }
private:
- CCDamageTracker();
+ DamageTracker();
- FloatRect trackDamageFromActiveLayers(const std::vector<CCLayerImpl*>& layerList, int targetSurfaceLayerID);
- FloatRect trackDamageFromSurfaceMask(CCLayerImpl* targetSurfaceMaskLayer);
+ FloatRect trackDamageFromActiveLayers(const std::vector<LayerImpl*>& layerList, int targetSurfaceLayerID);
+ FloatRect trackDamageFromSurfaceMask(LayerImpl* targetSurfaceMaskLayer);
FloatRect trackDamageFromLeftoverRects();
FloatRect removeRectFromCurrentFrame(int layerID, bool& layerIsNew);
void saveRectForNextFrame(int layerID, const FloatRect& targetSpaceRect);
// These helper functions are used only in trackDamageFromActiveLayers().
- void extendDamageForLayer(CCLayerImpl*, FloatRect& targetDamageRect);
- void extendDamageForRenderSurface(CCLayerImpl*, FloatRect& targetDamageRect);
+ void extendDamageForLayer(LayerImpl*, FloatRect& targetDamageRect);
+ void extendDamageForRenderSurface(LayerImpl*, FloatRect& targetDamageRect);
// To correctly track exposed regions, two hashtables of rects are maintained.
// The "current" map is used to compute exposed regions of the current frame, while
« cc/active_animation.h ('K') | « cc/content_layer_unittest.cc ('k') | cc/damage_tracker.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698