Simplify subset computation in SkGifImageReader
authorLeon Scroggins III <scroggo@google.com>
Fri, 7 Apr 2017 14:20:53 +0000 (10:20 -0400)
committerSkia Commit-Bot <skia-commit-bot@chromium.org>
Fri, 7 Apr 2017 15:04:33 +0000 (15:04 +0000)
commit2d61e7170067129ca5dbf8fead23d9f2ae5947b5
tree899bec6cb1e3503bb40b82de128c4c9f67ce18b7
parent28f5b779a3852227b6acea530d322ec721681534
Simplify subset computation in SkGifImageReader

If xOffset or yOffset was not zero, these computations would not
be evaluated anyway, so no need to add zero for these comparisons.

(Split off from CL 9810)

Change-Id: I8481eb257d96766696945cef4eafaff4281fb7d9
Reviewed-on: https://skia-review.googlesource.com/11782
Reviewed-by: Matt Sarett <msarett@google.com>
Commit-Queue: Leon Scroggins <scroggo@google.com>
third_party/gif/SkGifImageReader.cpp