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

Unified Diff: src/core/SkSpriteBlitter4f.cpp

Issue 1889753002: remove U16 support, just support F16 (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: address reviewer comments, mostly fixing class/function names Created 4 years, 8 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/SkShader.cpp ('k') | src/core/SkXfermodeF16.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 25616203791ef93dc07d3a4d525e9123b17d514c..a13edd98064e4b54cfa5d8b13ffe2c63cce5487d 100644
--- a/src/core/SkSpriteBlitter4f.cpp
+++ b/src/core/SkSpriteBlitter4f.cpp
@@ -34,11 +34,11 @@ private:
class Sprite_F16 : public Sprite_4f {
public:
Sprite_F16(const SkPixmap& src, const SkPaint& paint) : INHERITED(src, paint) {
- uint32_t flags = SkXfermode::kDstIsFloat16_D64Flag;
+ uint32_t flags = 0;
if (src.isOpaque()) {
- flags |= SkXfermode::kSrcIsOpaque_D64Flag;
+ flags |= SkXfermode::kSrcIsOpaque_F16Flag;
}
- fWriter = SkXfermode::GetD64Proc(fXfer, flags);
+ fWriter = SkXfermode::GetF16Proc(fXfer, flags);
}
void blitRect(int x, int y, int width, int height) override {
@@ -55,7 +55,7 @@ public:
}
private:
- SkXfermode::D64Proc fWriter;
+ SkXfermode::F16Proc fWriter;
typedef Sprite_4f INHERITED;
};
« no previous file with comments | « src/core/SkShader.cpp ('k') | src/core/SkXfermodeF16.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698