| Index: third_party/WebKit/Source/platform/graphics/paint/PaintChunker.h
|
| diff --git a/third_party/WebKit/Source/platform/graphics/paint/PaintChunker.h b/third_party/WebKit/Source/platform/graphics/paint/PaintChunker.h
|
| index 511eb70de1408b9dde67d13f1d044999aeaa4c42..2ea786182599e20efa5fe9123f08894a9e5fc13d 100644
|
| --- a/third_party/WebKit/Source/platform/graphics/paint/PaintChunker.h
|
| +++ b/third_party/WebKit/Source/platform/graphics/paint/PaintChunker.h
|
| @@ -30,10 +30,14 @@ public:
|
| const PaintChunkProperties& currentPaintChunkProperties() const { return m_currentProperties; }
|
| void updateCurrentPaintChunkProperties(const PaintChunk::Id*, const PaintChunkProperties&);
|
|
|
| - void incrementDisplayItemIndex(const DisplayItem&);
|
| - void decrementDisplayItemIndex();
|
| + // Returns true if a new chunk is created.
|
| + bool incrementDisplayItemIndex(const DisplayItem&);
|
| + // Returns true if the last chunk is removed.
|
| + bool decrementDisplayItemIndex();
|
|
|
| - const PaintChunk& lastChunk() const { return m_chunks.last(); }
|
| + PaintChunk& paintChunkAt(size_t i) { return m_chunks[i]; }
|
| + size_t lastChunkIndex() const { return m_chunks.isEmpty() ? kNotFound : m_chunks.size() - 1; }
|
| + PaintChunk& lastChunk() { return m_chunks.last(); }
|
|
|
| void clear();
|
|
|
|
|