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

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

Issue 1324763002: Paint invalidation tests for slimming paint v2 (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Yet another unrelated file mixed from another branch :( Created 5 years, 4 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
« no previous file with comments | « Source/platform/graphics/GraphicsLayer.cpp ('k') | Source/platform/graphics/paint/DisplayItemList.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/platform/graphics/paint/DisplayItemList.h
diff --git a/Source/platform/graphics/paint/DisplayItemList.h b/Source/platform/graphics/paint/DisplayItemList.h
index 164f94160f061d035a3d185fd06fd0032c7055b0..e8c258026dea60961bc8e966ca165d1c7cf1d479 100644
--- a/Source/platform/graphics/paint/DisplayItemList.h
+++ b/Source/platform/graphics/paint/DisplayItemList.h
@@ -6,6 +6,7 @@
#define DisplayItemList_h
#include "platform/PlatformExport.h"
+#include "platform/RuntimeEnabledFeatures.h"
#include "platform/graphics/ContiguousContainer.h"
#include "platform/graphics/paint/DisplayItem.h"
#include "platform/graphics/paint/Transform3DDisplayItem.h"
@@ -43,7 +44,8 @@ public:
}
// These methods are called during paint invalidation.
- void invalidate(DisplayItemClient);
+ void invalidate(const DisplayItemClientWrapper&);
+ void invalidateUntracked(DisplayItemClient);
void invalidateAll();
// These methods are called during painting.
@@ -109,6 +111,22 @@ public:
void showDebugData() const;
#endif
+ void startTrackingPaintInvalidationObjects()
+ {
+ ASSERT(RuntimeEnabledFeatures::slimmingPaintV2Enabled());
+ m_trackedPaintInvalidationObjects = adoptPtr(new Vector<String>());
+ }
+ void stopTrackingPaintInvalidationObjects()
+ {
+ ASSERT(RuntimeEnabledFeatures::slimmingPaintV2Enabled());
+ m_trackedPaintInvalidationObjects = nullptr;
+ }
+ Vector<String> trackedPaintInvalidationObjects()
+ {
+ ASSERT(RuntimeEnabledFeatures::slimmingPaintV2Enabled());
+ return m_trackedPaintInvalidationObjects ? *m_trackedPaintInvalidationObjects : Vector<String>();
+ }
+
protected:
DisplayItemList()
: m_currentDisplayItems(kMaximumDisplayItemSize, 0)
@@ -183,6 +201,8 @@ private:
// the duplicated ids are from.
DisplayItemIndicesByClientMap m_newDisplayItemIndicesByClient;
#endif
+
+ OwnPtr<Vector<String>> m_trackedPaintInvalidationObjects;
};
} // namespace blink
« no previous file with comments | « Source/platform/graphics/GraphicsLayer.cpp ('k') | Source/platform/graphics/paint/DisplayItemList.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698