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

Unified Diff: third_party/WebKit/Source/platform/graphics/BitmapImageTest.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/BitmapImageTest.cpp
diff --git a/third_party/WebKit/Source/platform/graphics/BitmapImageTest.cpp b/third_party/WebKit/Source/platform/graphics/BitmapImageTest.cpp
index 72cdf00c65d3148a1b60560e5bdca5de866dc68b..4bb028e89aac455e66db20265eaa7800c8246296 100644
--- a/third_party/WebKit/Source/platform/graphics/BitmapImageTest.cpp
+++ b/third_party/WebKit/Source/platform/graphics/BitmapImageTest.cpp
@@ -102,12 +102,14 @@ class BitmapImageTest : public ::testing::Test {
}
size_t decodedSize() {
- // In the context of this test, the following loop will give the correct result, but only because the test
- // forces all frames to be decoded in loadImage() above. There is no general guarantee that frameDecodedSize()
- // is up to date. Because of how multi frame images (like GIF) work, requesting one frame to be decoded may
- // require other previous frames to be decoded as well. In those cases frameDecodedSize() wouldn't return the
- // correct thing for the previous frame because the decoded size wouldn't have propagated upwards to the
- // BitmapImage frame cache.
+ // In the context of this test, the following loop will give the correct
+ // result, but only because the test forces all frames to be decoded in
+ // loadImage() above. There is no general guarantee that frameDecodedSize()
+ // is up to date. Because of how multi frame images (like GIF) work,
+ // requesting one frame to be decoded may require other previous frames to
+ // be decoded as well. In those cases frameDecodedSize() wouldn't return the
+ // correct thing for the previous frame because the decoded size wouldn't
+ // have propagated upwards to the BitmapImage frame cache.
size_t size = 0;
for (size_t i = 0; i < decodedFramesCount(); ++i)
size += frameDecodedSize(i);

Powered by Google App Engine
This is Rietveld 408576698