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

Side by Side Diff: Source/core/paint/ViewDisplayList.h

Issue 697543002: First implementation of the paint slimming update algorithm (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Update per reviewer comments Created 6 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 ViewDisplayList_h 5 #ifndef ViewDisplayList_h
6 #define ViewDisplayList_h 6 #define ViewDisplayList_h
7 7
8 #include "core/rendering/PaintPhase.h" 8 #include "core/rendering/PaintPhase.h"
9 #include "wtf/HashSet.h" 9 #include "wtf/HashSet.h"
10 #include "wtf/PassOwnPtr.h" 10 #include "wtf/PassOwnPtr.h"
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
89 89
90 const PaintList& paintList(); 90 const PaintList& paintList();
91 void add(WTF::PassOwnPtr<DisplayItem>); 91 void add(WTF::PassOwnPtr<DisplayItem>);
92 void invalidate(const RenderObject*); 92 void invalidate(const RenderObject*);
93 93
94 #ifndef NDEBUG 94 #ifndef NDEBUG
95 void showDebugData() const; 95 void showDebugData() const;
96 #endif 96 #endif
97 97
98 private: 98 private:
99 bool isRepaint(PaintList::iterator, const DisplayItem&); 99 PaintList::iterator findDisplayItem(PaintList::iterator, const DisplayItem&) ;
100 // Update m_paintList with any invalidations or new paints. 100 bool wasInvalidated(const DisplayItem&) const;
101 void updatePaintList(); 101 void updatePaintList();
102 102
103 PaintList m_paintList; 103 PaintList m_paintList;
104 HashSet<const RenderObject*> m_paintListRenderers;
104 HashSet<const RenderObject*> m_invalidated; 105 HashSet<const RenderObject*> m_invalidated;
105 PaintList m_newPaints; 106 PaintList m_newPaints;
106 }; 107 };
107 108
108 } // namespace blink 109 } // namespace blink
109 110
110 #endif // ViewDisplayList_h 111 #endif // ViewDisplayList_h
OLDNEW
« no previous file with comments | « no previous file | Source/core/paint/ViewDisplayList.cpp » ('j') | Source/core/paint/ViewDisplayList.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698