diff options
author | Yuqian Li <liyuqian@google.com> | 2017-10-17 14:45:19 -0400 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2017-10-17 19:17:02 +0000 |
commit | c24f5a3e6e504bbb4810981dcab1583b9a8d08aa (patch) | |
tree | 9be2c77e4c250e518dc22b835d2cd50b41fc6351 /src/core/SkScan_Path.cpp | |
parent | 62563deb6b4dbb0b1db7f29f35e07dcef043af31 (diff) |
Fix left shift ASAN problem
This should fix our new FSAA ASAN bot:
https://chromium-swarm.appspot.com/task?id=39446a25c7957710&refresh=10&show_raw=1&wide_logs=true
Bug: skia:7179
Change-Id: I1fcee6f7e3d8c8e3a646c67e41d4b6c19d372835
Reviewed-on: https://skia-review.googlesource.com/60702
Reviewed-by: Mike Klein <mtklein@chromium.org>
Commit-Queue: Mike Klein <mtklein@chromium.org>
Diffstat (limited to 'src/core/SkScan_Path.cpp')
-rw-r--r-- | src/core/SkScan_Path.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/core/SkScan_Path.cpp b/src/core/SkScan_Path.cpp index 845b737368..408815672c 100644 --- a/src/core/SkScan_Path.cpp +++ b/src/core/SkScan_Path.cpp @@ -391,10 +391,10 @@ void sk_fill_path(const SkPath& path, const SkIRect& clipRect, SkBlitter* blitte SkASSERT(blitter); SkIRect shiftedClip = clipRect; - shiftedClip.fLeft <<= shiftEdgesUp; - shiftedClip.fRight <<= shiftEdgesUp; - shiftedClip.fTop <<= shiftEdgesUp; - shiftedClip.fBottom <<= shiftEdgesUp; + shiftedClip.fLeft = SkLeftShift(shiftedClip.fLeft, shiftEdgesUp); + shiftedClip.fRight = SkLeftShift(shiftedClip.fRight, shiftEdgesUp); + shiftedClip.fTop = SkLeftShift(shiftedClip.fTop, shiftEdgesUp); + shiftedClip.fBottom = SkLeftShift(shiftedClip.fBottom, shiftEdgesUp); SkEdgeBuilder builder; int count = builder.build_edges(path, &shiftedClip, shiftEdgesUp, pathContainedInClip); |