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

Unified Diff: third_party/WebKit/Source/platform/graphics/PictureSnapshot.cpp

Issue 2398453002: Rewrap comments to 80 columns in Source/platform/graphics/. (Closed)
Patch Set: Review feedback 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/PictureSnapshot.cpp
diff --git a/third_party/WebKit/Source/platform/graphics/PictureSnapshot.cpp b/third_party/WebKit/Source/platform/graphics/PictureSnapshot.cpp
index 1b8a2340e4e77fa1263313682b63a83f64eaa0ef..741826515b7cffd9c491731d8a8e00039946baae 100644
--- a/third_party/WebKit/Source/platform/graphics/PictureSnapshot.cpp
+++ b/third_party/WebKit/Source/platform/graphics/PictureSnapshot.cpp
@@ -122,7 +122,8 @@ std::unique_ptr<Vector<char>> PictureSnapshot::replay(unsigned fromStep,
double scale) const {
const SkIRect bounds = m_picture->cullRect().roundOut();
- // TODO(fmalita): convert this to SkSurface/SkImage, drop the intermediate SkBitmap.
+ // TODO(fmalita): convert this to SkSurface/SkImage, drop the intermediate
+ // SkBitmap.
SkBitmap bitmap;
bitmap.allocPixels(
SkImageInfo::MakeN32Premul(bounds.width(), bounds.height()));
@@ -130,8 +131,9 @@ std::unique_ptr<Vector<char>> PictureSnapshot::replay(unsigned fromStep,
{
ReplayingCanvas canvas(bitmap, fromStep, toStep);
// Disable LCD text preemptively, because the picture opacity is unknown.
- // The canonical API involves SkSurface props, but since we're not SkSurface-based
- // at this point (see TODO above) we (ab)use saveLayer for this purpose.
+ // The canonical API involves SkSurface props, but since we're not
+ // SkSurface-based at this point (see TODO above) we (ab)use saveLayer for
+ // this purpose.
SkAutoCanvasRestore autoRestore(&canvas, false);
canvas.saveLayer(nullptr, nullptr);

Powered by Google App Engine
This is Rietveld 408576698