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

Side by Side Diff: sky/engine/core/rendering/RenderObject.h

Issue 845093002: Delete an assortment of unneeded paint invalidation code. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 11 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2000 Lars Knoll (knoll@kde.org) 2 * Copyright (C) 2000 Lars Knoll (knoll@kde.org)
3 * (C) 2000 Antti Koivisto (koivisto@kde.org) 3 * (C) 2000 Antti Koivisto (koivisto@kde.org)
4 * (C) 2000 Dirk Mueller (mueller@kde.org) 4 * (C) 2000 Dirk Mueller (mueller@kde.org)
5 * (C) 2004 Allan Sandfeld Jensen (kde@carewolf.com) 5 * (C) 2004 Allan Sandfeld Jensen (kde@carewolf.com)
6 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2012 Apple Inc. All r ights reserved. 6 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2012 Apple Inc. All r ights reserved.
7 * Copyright (C) 2009 Google Inc. All rights reserved. 7 * Copyright (C) 2009 Google Inc. All rights reserved.
8 * 8 *
9 * This library is free software; you can redistribute it and/or 9 * This library is free software; you can redistribute it and/or
10 * modify it under the terms of the GNU Library General Public 10 * modify it under the terms of the GNU Library General Public
(...skipping 596 matching lines...) Expand 10 before | Expand all | Expand 10 after
607 { 607 {
608 return computePaintInvalidationRect(containerForPaintInvalidation()); 608 return computePaintInvalidationRect(containerForPaintInvalidation());
609 } 609 }
610 610
611 // Returns the paint invalidation rect for this RenderObject in the coordina te space of the paint backing (typically a GraphicsLayer) for |paintInvalidation Container|. 611 // Returns the paint invalidation rect for this RenderObject in the coordina te space of the paint backing (typically a GraphicsLayer) for |paintInvalidation Container|.
612 LayoutRect computePaintInvalidationRect(const RenderLayerModelObject* paintI nvalidationContainer, const PaintInvalidationState* = 0) const; 612 LayoutRect computePaintInvalidationRect(const RenderLayerModelObject* paintI nvalidationContainer, const PaintInvalidationState* = 0) const;
613 613
614 // Returns the rect bounds needed to invalidate the paint of this object, in the coordinate space of the rendering backing of |paintInvalidationContainer| 614 // Returns the rect bounds needed to invalidate the paint of this object, in the coordinate space of the rendering backing of |paintInvalidationContainer|
615 LayoutRect boundsRectForPaintInvalidation(const RenderLayerModelObject* pain tInvalidationContainer, const PaintInvalidationState* = 0) const; 615 LayoutRect boundsRectForPaintInvalidation(const RenderLayerModelObject* pain tInvalidationContainer, const PaintInvalidationState* = 0) const;
616 616
617 // Invalidate the paint of a specific subrectangle within a given object. Th e rect |r| is in the object's coordinate space.
618 void invalidatePaintRectangle(const LayoutRect&) const;
619
620 // Walk the tree after layout issuing paint invalidations for renderers that have changed or moved, updating bounds that have changed, and clearing paint in validation state. 617 // Walk the tree after layout issuing paint invalidations for renderers that have changed or moved, updating bounds that have changed, and clearing paint in validation state.
621 virtual void invalidateTreeIfNeeded(const PaintInvalidationState&); 618 virtual void invalidateTreeIfNeeded(const PaintInvalidationState&);
622 619
623 bool checkForPaintInvalidation() const;
624
625 // Returns the rect that should have paint invalidated whenever this object changes. The rect is in the view's 620 // Returns the rect that should have paint invalidated whenever this object changes. The rect is in the view's
626 // coordinate space. This method deals with outlines and overflow. 621 // coordinate space. This method deals with outlines and overflow.
627 LayoutRect absoluteClippedOverflowRect() const; 622 LayoutRect absoluteClippedOverflowRect() const;
628 IntRect pixelSnappedAbsoluteClippedOverflowRect() const; 623 IntRect pixelSnappedAbsoluteClippedOverflowRect() const;
629 virtual LayoutRect clippedOverflowRectForPaintInvalidation(const RenderLayer ModelObject* paintInvalidationContainer, const PaintInvalidationState* = 0) cons t; 624 virtual LayoutRect clippedOverflowRectForPaintInvalidation(const RenderLayer ModelObject* paintInvalidationContainer, const PaintInvalidationState* = 0) cons t;
630 virtual LayoutRect rectWithOutlineForPaintInvalidation(const RenderLayerMode lObject* paintInvalidationContainer, LayoutUnit outlineWidth, const PaintInvalid ationState* = 0) const; 625 virtual LayoutRect rectWithOutlineForPaintInvalidation(const RenderLayerMode lObject* paintInvalidationContainer, LayoutUnit outlineWidth, const PaintInvalid ationState* = 0) const;
631 626
632 // Given a rect in the object's coordinate space, compute a rect suitable fo r invalidating paints of 627 // Given a rect in the object's coordinate space, compute a rect suitable fo r invalidating paints of
633 // that rect in the coordinate space of paintInvalidationContainer. 628 // that rect in the coordinate space of paintInvalidationContainer.
634 virtual void mapRectToPaintInvalidationBacking(const RenderLayerModelObject* paintInvalidationContainer, LayoutRect&, const PaintInvalidationState*) const; 629 virtual void mapRectToPaintInvalidationBacking(const RenderLayerModelObject* paintInvalidationContainer, LayoutRect&, const PaintInvalidationState*) const;
(...skipping 480 matching lines...) Expand 10 before | Expand all | Expand 10 after
1115 void showTree(const blink::RenderObject*); 1110 void showTree(const blink::RenderObject*);
1116 void showLineTree(const blink::RenderObject*); 1111 void showLineTree(const blink::RenderObject*);
1117 void showRenderTree(const blink::RenderObject* object1); 1112 void showRenderTree(const blink::RenderObject* object1);
1118 // We don't make object2 an optional parameter so that showRenderTree 1113 // We don't make object2 an optional parameter so that showRenderTree
1119 // can be called from gdb easily. 1114 // can be called from gdb easily.
1120 void showRenderTree(const blink::RenderObject* object1, const blink::RenderObjec t* object2); 1115 void showRenderTree(const blink::RenderObject* object1, const blink::RenderObjec t* object2);
1121 1116
1122 #endif 1117 #endif
1123 1118
1124 #endif // SKY_ENGINE_CORE_RENDERING_RENDEROBJECT_H_ 1119 #endif // SKY_ENGINE_CORE_RENDERING_RENDEROBJECT_H_
OLDNEW
« no previous file with comments | « sky/engine/core/rendering/RenderLayerScrollableArea.cpp ('k') | sky/engine/core/rendering/RenderObject.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698