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

Unified Diff: src/core/SkBlitter_Sprite.cpp

Issue 1734983003: New GM that exercises gamma-correctness in various parts of the pipeline. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 4 years, 10 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
« gm/gamma.cpp ('K') | « gm/gamma.cpp ('k') | src/core/SkSpriteBlitter.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/core/SkBlitter_Sprite.cpp
diff --git a/src/core/SkBlitter_Sprite.cpp b/src/core/SkBlitter_Sprite.cpp
index 27cbd61768ed6db20aad874e0cbb570d1c449a19..8a863e54b0d26f18a2b3ab50f769a0743ecbed30 100644
--- a/src/core/SkBlitter_Sprite.cpp
+++ b/src/core/SkBlitter_Sprite.cpp
@@ -60,10 +60,10 @@ SkBlitter* SkBlitter::ChooseSprite(const SkPixmap& dst, const SkPaint& paint,
blitter = SkSpriteBlitter::ChooseD16(source, paint, allocator);
break;
case kN32_SkColorType:
- if (dst.info().isSRGB()) {
- blitter = SkSpriteBlitter::ChooseS32(source, paint, allocator);
+ if (dst.info().isSRGB() || source.info().isSRGB()) {
+ blitter = SkSpriteBlitter::ChooseNew32(source, paint, allocator, dst.info().profileType());
reed1 2016/02/25 23:49:33 nit: breaks 100col limit
} else {
- blitter = SkSpriteBlitter::ChooseL32(source, paint, allocator);
+ blitter = SkSpriteBlitter::ChooseLegacy32(source, paint, allocator);
}
break;
case kRGBA_F16_SkColorType:
« gm/gamma.cpp ('K') | « gm/gamma.cpp ('k') | src/core/SkSpriteBlitter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698