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

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

Issue 2176573004: Enable subsequence caching for spv2 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@CachePaintProperties
Patch Set: Spv2 configuration for PaintLayerPainterTest, unsigned->size_t etc. Created 4 years, 5 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/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 a23c84f530d36573f7cb431035f878e733719a38..6341b033d3bc29175d5344cf0522a98846ba2b4f 100644
--- a/third_party/WebKit/Source/platform/graphics/paint/PaintChunk.h
+++ b/third_party/WebKit/Source/platform/graphics/paint/PaintChunk.h
@@ -23,14 +23,14 @@ namespace blink {
struct PaintChunk {
DISALLOW_NEW_EXCEPT_PLACEMENT_NEW();
PaintChunk() : beginIndex(0), endIndex(0), knownToBeOpaque(false) { }
- PaintChunk(unsigned begin, unsigned end, const DisplayItem::Id* chunkId, const PaintChunkProperties& props)
+ PaintChunk(size_t begin, size_t end, const DisplayItem::Id* chunkId, const PaintChunkProperties& props)
: beginIndex(begin), endIndex(end), properties(props), knownToBeOpaque(false)
{
if (chunkId)
id.emplace(*chunkId);
}
- unsigned size() const
+ size_t size() const
{
ASSERT(endIndex >= beginIndex);
return endIndex - beginIndex;
@@ -55,11 +55,11 @@ struct PaintChunk {
}
// Index of the first drawing in this chunk.
- unsigned beginIndex;
+ size_t beginIndex;
// Index of the first drawing not in this chunk, so that there are
// |endIndex - beginIndex| drawings in the chunk.
- unsigned endIndex;
+ size_t endIndex;
// Identifier of this chunk. If it has a value, it should be unique.
// It's used to match a new chunk to a cached old chunk to track changes of chunk

Powered by Google App Engine
This is Rietveld 408576698