Commit e0e1b344 authored by Michael Ludwig's avatar Michael Ludwig Committed by Commit Bot

SkiaRenderer: Fix bounds check in GetTextureConstraint

Change-Id: I7495436489b6af83ad01f42fd35aa2cb40bebd06
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1693283
Commit-Queue: Michael Ludwig <michaelludwig@google.com>
Commit-Queue: weiliangc <weiliangc@chromium.org>
Auto-Submit: Michael Ludwig <michaelludwig@google.com>
Reviewed-by: default avatarweiliangc <weiliangc@chromium.org>
Cr-Commit-Position: refs/heads/master@{#675803}
parent 8cf64121
......@@ -308,7 +308,7 @@ SkCanvas::SrcRectConstraint GetTextureConstraint(
bool fills_left = valid_texel_bounds.x() <= 0.f;
bool fills_right = valid_texel_bounds.right() >= image->width();
bool fills_top = valid_texel_bounds.y() <= 0.f;
bool fills_bottom = valid_texel_bounds.y() >= image->height();
bool fills_bottom = valid_texel_bounds.bottom() >= image->height();
if (fills_left && fills_right && fills_top && fills_bottom) {
// The entire image is contained in the content area, so hardware clamping
// ensures only content texels are sampled
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment