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

Side by Side Diff: Source/core/rendering/RenderLayerRepainter.h

Issue 498773007: Move some scroll invalidations to the paint invalidation phase (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Patch updated after Dan's review. Created 6 years, 3 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 | « Source/core/frame/FrameView.cpp ('k') | Source/core/rendering/RenderLayerRepainter.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2003, 2009, 2012 Apple Inc. All rights reserved. 2 * Copyright (C) 2003, 2009, 2012 Apple Inc. All rights reserved.
3 * Copyright (C) 2013 Intel Corporation. All rights reserved. 3 * Copyright (C) 2013 Intel Corporation. All rights reserved.
4 * 4 *
5 * Portions are Copyright (C) 1998 Netscape Communications Corporation. 5 * Portions are Copyright (C) 1998 Netscape Communications Corporation.
6 * 6 *
7 * Other contributors: 7 * Other contributors:
8 * Robert O'Callahan <roc+@cs.cmu.edu> 8 * Robert O'Callahan <roc+@cs.cmu.edu>
9 * David Baron <dbaron@fas.harvard.edu> 9 * David Baron <dbaron@fas.harvard.edu>
10 * Christian Biesinger <cbiesinger@web.de> 10 * Christian Biesinger <cbiesinger@web.de>
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 namespace blink { 51 namespace blink {
52 52
53 class RenderLayer; 53 class RenderLayer;
54 class RenderLayerModelObject; 54 class RenderLayerModelObject;
55 55
56 class RenderLayerRepainter { 56 class RenderLayerRepainter {
57 WTF_MAKE_NONCOPYABLE(RenderLayerRepainter); 57 WTF_MAKE_NONCOPYABLE(RenderLayerRepainter);
58 public: 58 public:
59 RenderLayerRepainter(RenderLayerModelObject&); 59 RenderLayerRepainter(RenderLayerModelObject&);
60 60
61 LayoutRect paintInvalidationRectIncludingNonCompositingDescendants() const;
62
63 void paintInvalidationIncludingNonCompositingDescendants(); 61 void paintInvalidationIncludingNonCompositingDescendants();
64 62
65 void computePaintInvalidationRectsIncludingNonCompositingDescendants(); 63 void computePaintInvalidationRectsIncludingNonCompositingDescendants();
66 64
67 // Indicate that the layer contents need to be repainted. Only has an effect 65 // Indicate that the layer contents need to be repainted. Only has an effect
68 // if layer compositing is being used, 66 // if layer compositing is being used,
69 void setBackingNeedsPaintInvalidationInRect(const LayoutRect&); // r is in t he coordinate space of the layer's render object 67 void setBackingNeedsPaintInvalidationInRect(const LayoutRect&); // r is in t he coordinate space of the layer's render object
70 68
71 void setFilterBackendNeedsPaintInvalidationInRect(const LayoutRect&); 69 void setFilterBackendNeedsPaintInvalidationInRect(const LayoutRect&);
72 70
73 private: 71 private:
74 void paintInvalidationIncludingNonCompositingDescendantsInternal(const Rende rLayerModelObject* repaintContainer); 72 void paintInvalidationIncludingNonCompositingDescendantsInternal(const Rende rLayerModelObject* repaintContainer);
75 73
76 RenderLayer* enclosingFilterPaintInvalidationLayer() const; 74 RenderLayer* enclosingFilterPaintInvalidationLayer() const;
77 75
78 RenderLayerModelObject& m_renderer; 76 RenderLayerModelObject& m_renderer;
79 }; 77 };
80 78
81 } // namespace blink 79 } // namespace blink
82 80
83 #endif // RenderLayerRepainter_h 81 #endif // RenderLayerRepainter_h
OLDNEW
« no previous file with comments | « Source/core/frame/FrameView.cpp ('k') | Source/core/rendering/RenderLayerRepainter.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698