aboutsummaryrefslogtreecommitdiffhomepage
path: root/bench/DrawLatticeBench.cpp
diff options
context:
space:
mode:
authorGravatar msarett <msarett@google.com>2016-09-02 11:24:30 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2016-09-02 11:24:30 -0700
commit0764efe6a9ae65ad83992f614f57ca9db5b1f191 (patch)
tree0093acd4cd619336ccd5f6b06748e9928af438ef /bench/DrawLatticeBench.cpp
parent005327b9ddbf0bb2890c7d563b3d9a8ea8a284f6 (diff)
Add option to skip rects to drawImageLattice()
HWUI skips transparent rects when drawing. When skia draws using bilerp, we will blend transparent rects with neighboring rects and might draw a bit of a smudge. This CL adds the option to skip rects, allowing us to have compatible behavior with the framework. BUG=skia: GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2305433002 Review-Url: https://codereview.chromium.org/2305433002
Diffstat (limited to 'bench/DrawLatticeBench.cpp')
-rw-r--r--bench/DrawLatticeBench.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/bench/DrawLatticeBench.cpp b/bench/DrawLatticeBench.cpp
index 9c4d31a099..19d549f297 100644
--- a/bench/DrawLatticeBench.cpp
+++ b/bench/DrawLatticeBench.cpp
@@ -21,6 +21,7 @@ public:
fLattice.fXCount = xCount;
fLattice.fYDivs = yDivs;
fLattice.fYCount = yCount;
+ fLattice.fFlags = nullptr;
fName = SkStringPrintf("DrawLattice_%s", desc);
}