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 e072a4def9ebb7a5045234a9a0c14f40489933ee..77b00d91745b174b11c166dc59f20a093c5e3d4b 100644 |
--- a/third_party/WebKit/Source/platform/graphics/paint/PaintChunk.h |
+++ b/third_party/WebKit/Source/platform/graphics/paint/PaintChunk.h |
@@ -20,9 +20,9 @@ namespace blink { |
// This is a Slimming Paint v2 class. |
struct PaintChunk { |
DISALLOW_NEW_EXCEPT_PLACEMENT_NEW(); |
- PaintChunk() : beginIndex(0), endIndex(0) { } |
+ PaintChunk() : beginIndex(0), endIndex(0), knownToBeOpaque(false) { } |
PaintChunk(unsigned begin, unsigned end, const PaintChunkProperties& props) |
- : beginIndex(begin), endIndex(end), properties(props) { } |
+ : beginIndex(begin), endIndex(end), properties(props), knownToBeOpaque(false) { } |
// Index of the first drawing in this chunk. |
unsigned beginIndex; |
@@ -36,6 +36,9 @@ struct PaintChunk { |
// The total bounds of this paint chunk's contents. |
FloatRect bounds; |
+ |
+ // True if the bounds are filled entirely with opaque contents. |
+ bool knownToBeOpaque; |
}; |
inline bool operator==(const PaintChunk& a, const PaintChunk& b) |
jbroman
2016/01/26 17:50:14
mind updating operator==?
pdr.
2016/01/26 23:38:08
Done.
|