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

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

Issue 2277443003: [SPv2] Rasterization invalidation (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: - Created 4 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 | « no previous file | third_party/WebKit/Source/platform/graphics/paint/PaintChunker.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/platform/graphics/paint/PaintChunk.h
diff --git a/third_party/WebKit/Source/platform/graphics/paint/PaintChunk.h b/third_party/WebKit/Source/platform/graphics/paint/PaintChunk.h
index 6341b033d3bc29175d5344cf0522a98846ba2b4f..1bbda6742d97664b95a629c4ceccf289048d1ef6 100644
--- a/third_party/WebKit/Source/platform/graphics/paint/PaintChunk.h
+++ b/third_party/WebKit/Source/platform/graphics/paint/PaintChunk.h
@@ -73,11 +73,16 @@ struct PaintChunk {
// The paint properties which apply to this chunk.
PaintChunkProperties properties;
- // The total bounds of this paint chunk's contents.
+ // The total bounds of this paint chunk's contents, in -the coordinate space of
+ // the containing transform node.
FloatRect bounds;
// True if the bounds are filled entirely with opaque contents.
bool knownToBeOpaque;
+
+ // SPv2 only. Rectangles that need to be re-rasterized in this chunk, in the
+ // coordinate space of the containing transform node.
+ Vector<FloatRect> rasterInvalidationRects;
};
inline bool operator==(const PaintChunk& a, const PaintChunk& b)
@@ -87,7 +92,8 @@ inline bool operator==(const PaintChunk& a, const PaintChunk& b)
&& a.id == b.id
&& a.properties == b.properties
&& a.bounds == b.bounds
- && a.knownToBeOpaque == b.knownToBeOpaque;
+ && a.knownToBeOpaque == b.knownToBeOpaque
+ && a.rasterInvalidationRects == b.rasterInvalidationRects;
}
inline bool operator!=(const PaintChunk& a, const PaintChunk& b)
« no previous file with comments | « no previous file | third_party/WebKit/Source/platform/graphics/paint/PaintChunker.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698