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

Unified Diff: third_party/WebKit/Source/platform/graphics/paint/PaintController.h

Issue 2868283003: [SPv2] Renaming and refactor about raster invalidation tracking (Closed)
Patch Set: - Created 3 years, 7 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: third_party/WebKit/Source/platform/graphics/paint/PaintController.h
diff --git a/third_party/WebKit/Source/platform/graphics/paint/PaintController.h b/third_party/WebKit/Source/platform/graphics/paint/PaintController.h
index 5bfc86ec8e4156d37fca6adf2b74337b78eb6f6e..62d51c03183246da782825b46b61322dfbeddafe 100644
--- a/third_party/WebKit/Source/platform/graphics/paint/PaintController.h
+++ b/third_party/WebKit/Source/platform/graphics/paint/PaintController.h
@@ -195,7 +195,7 @@ class PLATFORM_EXPORT PaintController {
void SetTracksRasterInvalidations(bool value);
RasterInvalidationTrackingMap<const PaintChunk>*
PaintChunksRasterInvalidationTrackingMap() {
- return paint_chunks_raster_invalidation_tracking_map_.get();
+ return raster_invalidation_tracking_map_.get();
}
#if CHECK_DISPLAY_ITEM_CLIENT_ALIVENESS
@@ -280,13 +280,15 @@ class PLATFORM_EXPORT PaintController {
// newly created, or is changed causing the previous indices to be invalid.
void ResetCurrentListIndices();
- void GenerateChunkRasterInvalidationRects(PaintChunk& new_chunk);
- void GenerateChunkRasterInvalidationRectsComparingOldChunk(
- PaintChunk& new_chunk,
- const PaintChunk& old_chunk);
- void AddRasterInvalidationInfo(const DisplayItemClient*,
- PaintChunk&,
- const FloatRect&);
+ void GenerateRasterInvalidations(PaintChunk& new_chunk);
+ void GenerateRasterInvalidationsComparingChunks(PaintChunk& new_chunk,
+ const PaintChunk& old_chunk);
+ inline void AddRasterInvalidation(const DisplayItemClient*,
+ PaintChunk&,
+ const FloatRect&);
+ void TrackRasterInvalidation(const DisplayItemClient*,
+ PaintChunk&,
+ const FloatRect&);
// The following two methods are for checking under-invalidations
// (when RuntimeEnabledFeatures::paintUnderInvalidationCheckingEnabled).
@@ -411,7 +413,7 @@ class PLATFORM_EXPORT PaintController {
String under_invalidation_message_prefix_;
std::unique_ptr<RasterInvalidationTrackingMap<const PaintChunk>>
- paint_chunks_raster_invalidation_tracking_map_;
+ raster_invalidation_tracking_map_;
#if CHECK_DISPLAY_ITEM_CLIENT_ALIVENESS
// A stack recording subsequence clients that are currently painting.

Powered by Google App Engine
This is Rietveld 408576698