diff options
author | Yuqian Li <liyuqian@google.com> | 2017-07-26 00:21:56 -0400 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2017-07-26 04:48:09 +0000 |
commit | 103611d4c7c64316e5839abdc7bb6153eb1d28e1 (patch) | |
tree | c560f60f84ac6630a77e675bb6426b100938ebe8 /src/core/SkScan_DAAPath.cpp | |
parent | df60e369a8fb83c5dafded3f2453defa423f174a (diff) |
Fix flutter and g3 build
Replace deprecated function call and reduce stack usage in g3
Bug: skia:
Change-Id: Ib49ccecef4711c92ea2e62e772d98c0f5097e30d
TBR: reed@google.com, caryclark@google.com
Reviewed-on: https://skia-review.googlesource.com/26565
Reviewed-by: Yuqian Li <liyuqian@google.com>
Commit-Queue: Yuqian Li <liyuqian@google.com>
Diffstat (limited to 'src/core/SkScan_DAAPath.cpp')
-rw-r--r-- | src/core/SkScan_DAAPath.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/SkScan_DAAPath.cpp b/src/core/SkScan_DAAPath.cpp index 295d621446..0c199f43f1 100644 --- a/src/core/SkScan_DAAPath.cpp +++ b/src/core/SkScan_DAAPath.cpp @@ -321,7 +321,7 @@ void SkScan::DAAFillPath(const SkPath& path, const SkRegion& origClip, SkBlitter SkRect rect; if (!isInverse && path.isRect(&rect) && clippedIR.height() >= 3 && clippedIR.width() >= 3) { // The overhead of even constructing SkCoverageDeltaList/Mask is too big. So just blit. - bool nonEmpty = rect.intersect(SkRect::MakeFromIRect(clipBounds)); + bool nonEmpty = rect.intersect(SkRect::Make(clipBounds)); SkASSERT(nonEmpty); // do_fill_path should have already handled the empty case if (nonEmpty) { blitter->blitFatAntiRect(rect); |