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

Unified Diff: Source/platform/graphics/paint/DisplayItemList.h

Issue 860563003: Disable display item caching (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase 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 side-by-side diff with in-line comments
Download patch
Index: Source/platform/graphics/paint/DisplayItemList.h
diff --git a/Source/platform/graphics/paint/DisplayItemList.h b/Source/platform/graphics/paint/DisplayItemList.h
index af2af340d891d8a2dffb59b881ec9391b2e50b0c..72c610d1998f127082e2a7f938baef8f362ae176 100644
--- a/Source/platform/graphics/paint/DisplayItemList.h
+++ b/Source/platform/graphics/paint/DisplayItemList.h
@@ -23,12 +23,15 @@ class PLATFORM_EXPORT DisplayItemList {
public:
static PassOwnPtr<DisplayItemList> create() { return adoptPtr(new DisplayItemList); }
+ void beginNewPaints();
+ void endNewPaints();
+
const PaintList& paintList();
void add(WTF::PassOwnPtr<DisplayItem>);
void invalidate(DisplayItemClient);
void invalidateAll();
- bool clientCacheIsValid(DisplayItemClient client) const { return m_cachedClients.contains(client); }
+ bool clientCacheIsValid(DisplayItemClient) const;
// Plays back the current PaintList() into the given context.
void replay(GraphicsContext*);
@@ -38,7 +41,7 @@ public:
#endif
protected:
- DisplayItemList() { };
+ DisplayItemList() : m_doingNewPaints(false) { };
private:
PaintList::iterator findNextMatchingCachedItem(PaintList::iterator, const DisplayItem&);
@@ -51,6 +54,7 @@ private:
PaintList m_paintList;
HashSet<DisplayItemClient> m_cachedClients;
+ bool m_doingNewPaints;
PaintList m_newPaints;
};

Powered by Google App Engine
This is Rietveld 408576698