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

Unified Diff: Source/platform/graphics/ImageFrameGeneratorTest.cpp

Issue 531883002: use factories instead of manually setting fields (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 3 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
« no previous file with comments | « Source/platform/graphics/DeferredImageDecoder.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/platform/graphics/ImageFrameGeneratorTest.cpp
diff --git a/Source/platform/graphics/ImageFrameGeneratorTest.cpp b/Source/platform/graphics/ImageFrameGeneratorTest.cpp
index d84bef930870ce072fd1f3fc3aa83471db35d039..0d5390c08189ce95fc5ee750437683fc499d3232 100644
--- a/Source/platform/graphics/ImageFrameGeneratorTest.cpp
+++ b/Source/platform/graphics/ImageFrameGeneratorTest.cpp
@@ -43,12 +43,7 @@ SkISize fullSize() { return SkISize::Make(100, 100); }
SkImageInfo imageInfo()
{
- SkImageInfo info;
- info.fWidth = 100;
- info.fHeight = 100;
- info.fColorType = kBGRA_8888_SkColorType;
- info.fAlphaType = kOpaque_SkAlphaType;
- return info;
+ return SkImageInfo::Make(100, 100, kBGRA_8888_SkColorType, kOpaque_SkAlphaType);
}
} // namespace
« no previous file with comments | « Source/platform/graphics/DeferredImageDecoder.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698