From 0764efe6a9ae65ad83992f614f57ca9db5b1f191 Mon Sep 17 00:00:00 2001 From: msarett Date: Fri, 2 Sep 2016 11:24:30 -0700 Subject: 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 --- bench/DrawLatticeBench.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'bench/DrawLatticeBench.cpp') 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); } -- cgit v1.2.3