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: 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: 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 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
86 86
87 const PaintList& paintList(); 87 const PaintList& paintList();
88 void add(WTF::PassOwnPtr<DisplayItem>); 88 void add(WTF::PassOwnPtr<DisplayItem>);
89 void invalidate(const RenderObject*); 89 void invalidate(const RenderObject*);
90 90
91 #ifndef NDEBUG 91 #ifndef NDEBUG
92 void showDebugData() const; 92 void showDebugData() const;
93 #endif 93 #endif
94 94
95 private: 95 private:
96 bool isRepaint(PaintList::iterator, const DisplayItem&); 96 PaintList::iterator wasUninvalidatedRepaint(PaintList::iterator, const Displ ayItem&);
97 // Update m_paintList with any invalidations or new paints. 97 bool wasInvalidated(const DisplayItem&) const;
98 void updatePaintList(); 98 void updatePaintList();
99 99
100 PaintList m_paintList; 100 PaintList m_paintList;
101 HashSet<const RenderObject*> m_paintListRenderers;
101 HashSet<const RenderObject*> m_invalidated; 102 HashSet<const RenderObject*> m_invalidated;
102 PaintList m_newPaints; 103 PaintList m_newPaints;
103 }; 104 };
104 105
105 } // namespace blink 106 } // namespace blink
106 107
107 #endif // ViewDisplayList_h 108 #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