use left-shift macro to fix/avoid undefined behvarior warnings

motivated by https://codereview.chromium.org/1657333002/

BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1661873003

Review URL: https://codereview.chromium.org/1661873003
This commit is contained in:
reed 2016-02-03 10:16:08 -08:00 committed by Commit bot
parent 6dfc754360
commit 513d307263

View File

@ -703,8 +703,10 @@ void SkScan::AntiFillPath(const SkPath& path, const SkRegion& origClip,
SkIRect superRect, *superClipRect = nullptr;
if (clipRect) {
superRect.set( clipRect->fLeft << SHIFT, clipRect->fTop << SHIFT,
clipRect->fRight << SHIFT, clipRect->fBottom << SHIFT);
superRect.set(SkLeftShift(clipRect->fLeft, SHIFT),
SkLeftShift(clipRect->fTop, SHIFT),
SkLeftShift(clipRect->fRight, SHIFT),
SkLeftShift(clipRect->fBottom, SHIFT));
superClipRect = &superRect;
}