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

Unified Diff: src/ports/SkImageGeneratorCG.cpp

Issue 1842753002: Style bikeshed - remove extraneous whitespace (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 4 years, 9 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 | « src/ports/SkImageGeneratorCG.h ('k') | src/ports/SkImageGeneratorWIC.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/ports/SkImageGeneratorCG.cpp
diff --git a/src/ports/SkImageGeneratorCG.cpp b/src/ports/SkImageGeneratorCG.cpp
index 9be0b8c6f29596944de3c15d5b4037602d31fc1e..c54eebf9c7b212cd267d45f05ad1ffbe56bdd1f2 100644
--- a/src/ports/SkImageGeneratorCG.cpp
+++ b/src/ports/SkImageGeneratorCG.cpp
@@ -33,7 +33,7 @@ SkImageGenerator* SkImageGeneratorCG::NewFromEncodedCG(SkData* data) {
if (!imageSrc) {
return nullptr;
}
-
+
// Make sure we call CFRelease to free the imageSrc. Since CFRelease actually takes
// a const void*, we must cast the imageSrc to a const void*.
SkAutoTCallVProc<const void, CFRelease> autoImageSrc(imageSrc);
@@ -42,7 +42,7 @@ SkImageGenerator* SkImageGeneratorCG::NewFromEncodedCG(SkData* data) {
if (!properties) {
return nullptr;
}
-
+
CFNumberRef widthRef = (CFNumberRef) (CFDictionaryGetValue(properties,
kCGImagePropertyPixelWidth));
CFNumberRef heightRef = (CFNumberRef) (CFDictionaryGetValue(properties,
@@ -58,7 +58,7 @@ SkImageGenerator* SkImageGeneratorCG::NewFromEncodedCG(SkData* data) {
!CFNumberGetValue(heightRef, kCFNumberIntType, &height)) {
return nullptr;
}
-
+
SkAlphaType alphaType = hasAlpha ? kPremul_SkAlphaType : kOpaque_SkAlphaType;
SkImageInfo info = SkImageInfo::Make(width, height, kN32_SkColorType, alphaType);
@@ -85,7 +85,7 @@ bool SkImageGeneratorCG::onGetPixels(const SkImageInfo& info, void* pixels, size
// FIXME: Support other colorTypes.
return false;
}
-
+
switch (info.alphaType()) {
case kOpaque_SkAlphaType:
if (kOpaque_SkAlphaType != this->getInfo().alphaType()) {
@@ -97,7 +97,7 @@ bool SkImageGeneratorCG::onGetPixels(const SkImageInfo& info, void* pixels, size
default:
return false;
}
-
+
CGImageRef image = CGImageSourceCreateImageAtIndex((CGImageSourceRef) fImageSrc.get(), 0,
nullptr);
if (!image) {
« no previous file with comments | « src/ports/SkImageGeneratorCG.h ('k') | src/ports/SkImageGeneratorWIC.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698