aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/SkSpriteBlitter.h
diff options
context:
space:
mode:
authorGravatar brianosman <brianosman@google.com>2016-02-26 07:59:33 -0800
committerGravatar Commit bot <commit-bot@chromium.org>2016-02-26 07:59:33 -0800
commit9f73a71eec0eb54783f2dcad009aae6aafbe38d5 (patch)
tree85f1f40ca3cec8603466f810dfb2369b50a3412b /src/core/SkSpriteBlitter.h
parent89a60297fa359a38904e96bbbd51fe41d2defa10 (diff)
New GM that exercises gamma-correctness in various parts of the pipeline.
Attempts to render 50% grey through many different techniques. Only the first one (black/white dither) is guaranteed to be correct. This serves as ground-truth for all the others (independent of whatever your display may or may not be doing when viewing the output of the GM). Current tests: - Texture bilerp - Texture scale (ie mipmaps) - Simple paint color - Gradient - A handful of Xfer modes - 50% grey bitmaps, both linear and sRGB Also includes a bug-fix for sRGB -> Linear bitmap case BUG=skia: GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1734983003 Review URL: https://codereview.chromium.org/1734983003
Diffstat (limited to 'src/core/SkSpriteBlitter.h')
-rw-r--r--src/core/SkSpriteBlitter.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/SkSpriteBlitter.h b/src/core/SkSpriteBlitter.h
index 62c50c8b35..1bc5cf502f 100644
--- a/src/core/SkSpriteBlitter.h
+++ b/src/core/SkSpriteBlitter.h
@@ -29,8 +29,8 @@ public:
#endif
static SkSpriteBlitter* ChooseD16(const SkPixmap& source, const SkPaint&, SkTBlitterAllocator*);
- static SkSpriteBlitter* ChooseL32(const SkPixmap& source, const SkPaint&, SkTBlitterAllocator*);
- static SkSpriteBlitter* ChooseS32(const SkPixmap& source, const SkPaint&, SkTBlitterAllocator*);
+ static SkSpriteBlitter* ChooseLegacy32(const SkPixmap& source, const SkPaint&, SkTBlitterAllocator*);
+ static SkSpriteBlitter* ChooseNew32(const SkPixmap& source, const SkPaint&, SkTBlitterAllocator*, SkColorProfileType dstPt);
static SkSpriteBlitter* ChooseF16(const SkPixmap& source, const SkPaint&, SkTBlitterAllocator*);
protected: