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

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

Issue 2385123003: Rewrap comments to 80 columns in Source/platform/graphics/paint/. (Closed)
Patch Set: Resync Created 4 years, 2 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 6c40c0d55afa4b64dcb6ae75626f64c7dbc6f578..b88cef708e7102d85a922bee9f3225156840b724 100644
--- a/third_party/WebKit/Source/platform/graphics/paint/PaintChunk.h
+++ b/third_party/WebKit/Source/platform/graphics/paint/PaintChunk.h
@@ -53,8 +53,9 @@ struct PaintChunk {
CHECK(id->client.isAlive());
#endif
// A chunk whose client is just created should not match any cached chunk,
- // even if it's id equals the old chunk's id (which may happen if this chunk's
- // client is just created at the same address of the old chunk's deleted client).
+ // even if it's id equals the old chunk's id (which may happen if this
+ // chunk's client is just created at the same address of the old chunk's
+ // deleted client).
return !id->client.isJustCreated();
}
@@ -65,19 +66,20 @@ struct PaintChunk {
// |endIndex - beginIndex| drawings in the chunk.
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
- // contents, so the id should be stable across document cycles.
- // If the contents of the chunk can't be cached (e.g. it's created when PaintController
- // is skipping cache, normally because display items can't be uniquely identified),
- // id is nullopt so that the chunk won't match any other chunk.
+ // Identifier of this chunk. If it has a value, it should be unique. This is
+ // used to match a new chunk to a cached old chunk to track changes of chunk
+ // contents, so the id should be stable across document cycles. If the
+ // contents of the chunk can't be cached (e.g. it's created when
+ // PaintController is skipping the cache, normally because display items can't
+ // be uniquely identified), |id| is nullopt so that the chunk won't match any
+ // other chunk.
using Id = DisplayItem::Id;
Optional<Id> id;
// The paint properties which apply to this chunk.
PaintChunkProperties properties;
- // The total bounds of this paint chunk's contents, in -the coordinate space of
+ // The total bounds of this paint chunk's contents, in the coordinate space of
// the containing transform node.
FloatRect bounds;

Powered by Google App Engine
This is Rietveld 408576698