diff options
author | fmalita <fmalita@chromium.org> | 2016-02-22 17:19:04 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-02-22 17:19:04 -0800 |
commit | d0c4e092d54d281991ecfdc2e4ddd5217e45b42a (patch) | |
tree | b7410292954a9f95bef49d7668adb8d82a07e0f8 /bench | |
parent | 888934723db64ebecb0d6e577ba7b70689d83dd2 (diff) |
Add dest type hint to SkShader::ContextRec
Let SkBlitter decide which dst type is optimal (PMColor vs PM4f), and
pass that info to shaders.
R=reed@google.com
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1724503002
Review URL: https://codereview.chromium.org/1724503002
Diffstat (limited to 'bench')
-rw-r--r-- | bench/SkLinearBitmapPipelineBench.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/bench/SkLinearBitmapPipelineBench.cpp b/bench/SkLinearBitmapPipelineBench.cpp index 8a4ba2cef9..8c44fa8511 100644 --- a/bench/SkLinearBitmapPipelineBench.cpp +++ b/bench/SkLinearBitmapPipelineBench.cpp @@ -196,7 +196,8 @@ struct SkBitmapFPOrigShader : public CommonBitmapFPBenchmark { SkAutoTMalloc<SkPMColor> buffer4b(width*height); uint32_t storage[200]; - const SkShader::ContextRec rec(fPaint, fM, nullptr); + const SkShader::ContextRec rec(fPaint, fM, nullptr, + SkShader::ContextRec::kPMColor_DstType); SkASSERT(fPaint.getShader()->contextSize(rec) <= sizeof(storage)); SkShader::Context* ctx = fPaint.getShader()->createContext(rec, storage); |