Fix drawRect
Change-Id: I19ffc48fa812aefe53e2a9fbc65a9ddda3dcce08 Reviewed-on: https://skia-review.googlesource.com/149288 Reviewed-by: Brian Salomon <bsalomon@google.com> Commit-Queue: Robert Phillips <robertphillips@google.com>
This commit is contained in:
parent
d2fec23523
commit
8c8b0462df
@ -486,12 +486,12 @@ void GrRenderTargetContext::drawRect(const GrClip& clip,
|
||||
AutoCheckFlush acf(this->drawingManager());
|
||||
|
||||
const SkStrokeRec& stroke = style->strokeRec();
|
||||
if (stroke.getStyle() == SkStrokeRec::kFill_Style && !paint.numCoverageFragmentProcessors()) {
|
||||
if (stroke.getStyle() == SkStrokeRec::kFill_Style) {
|
||||
// Check if this is a full RT draw and can be replaced with a clear. We don't bother
|
||||
// checking cases where the RT is fully inside a stroke.
|
||||
SkRect rtRect = fRenderTargetProxy->getBoundsRect();
|
||||
// Does the clip contain the entire RT?
|
||||
if (clip.quickContains(rtRect)) {
|
||||
if (clip.quickContains(rtRect) && !paint.numCoverageFragmentProcessors()) {
|
||||
SkMatrix invM;
|
||||
if (!viewMatrix.invert(&invM)) {
|
||||
return;
|
||||
|
Loading…
Reference in New Issue
Block a user