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

Unified Diff: src/core/SkSpriteBlitter4f.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/core/SkSpecialSurface.cpp ('k') | src/core/SkSpriteBlitter_RGB16.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/core/SkSpriteBlitter4f.cpp
diff --git a/src/core/SkSpriteBlitter4f.cpp b/src/core/SkSpriteBlitter4f.cpp
index 474bf4d0f606bb0681dc6dd748b747f7bce1692a..25616203791ef93dc07d3a4d525e9123b17d514c 100644
--- a/src/core/SkSpriteBlitter4f.cpp
+++ b/src/core/SkSpriteBlitter4f.cpp
@@ -18,13 +18,13 @@ public:
fFilter = SkFilterSpanProc_Choose(paint);
fBuffer.reset(src.width());
}
-
+
protected:
SkXfermode* fXfer;
SkLoadSpanProc fLoader;
SkFilterSpanProc fFilter;
SkAutoTMalloc<SkPM4f> fBuffer;
-
+
private:
typedef SkSpriteBlitter INHERITED;
};
@@ -53,7 +53,7 @@ public:
dst = (uint64_t* SK_RESTRICT)((char*)dst + dstRB);
}
}
-
+
private:
SkXfermode::D64Proc fWriter;
@@ -89,12 +89,12 @@ public:
}
fWriter = SkXfermode::GetD32Proc(fXfer, flags);
}
-
+
void blitRect(int x, int y, int width, int height) override {
SkASSERT(width > 0 && height > 0);
uint32_t* SK_RESTRICT dst = fDst.writable_addr32(x, y);
size_t dstRB = fDst.rowBytes();
-
+
for (int bottom = y + height; y < bottom; ++y) {
fLoader(fSource, x - fLeft, y - fTop, fBuffer, width);
fFilter(*fPaint, fBuffer, width);
@@ -102,10 +102,10 @@ public:
dst = (uint32_t* SK_RESTRICT)((char*)dst + dstRB);
}
}
-
+
protected:
SkXfermode::D32Proc fWriter;
-
+
private:
typedef Sprite_4f INHERITED;
};
@@ -114,11 +114,11 @@ private:
SkSpriteBlitter* SkSpriteBlitter::ChooseS32(const SkPixmap& source, const SkPaint& paint,
SkTBlitterAllocator* allocator) {
SkASSERT(allocator != nullptr);
-
+
if (paint.getMaskFilter() != nullptr) {
return nullptr;
}
-
+
switch (source.colorType()) {
case kN32_SkColorType:
case kRGBA_F16_SkColorType:
« no previous file with comments | « src/core/SkSpecialSurface.cpp ('k') | src/core/SkSpriteBlitter_RGB16.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698