Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(243)

Unified Diff: src/gpu/GrDrawState.cpp

Issue 718103003: Relax constraints on src coeff in GrDrawState::willBlendWithDst. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Flip new check Created 6 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/gpu/GrDrawState.cpp
diff --git a/src/gpu/GrDrawState.cpp b/src/gpu/GrDrawState.cpp
index 23ebea6afcfd9cbbb4f476edea789b46e21118d4..4ae93bfaf0ad8220a4a6462bc6ec422ba9f14a71 100644
--- a/src/gpu/GrDrawState.cpp
+++ b/src/gpu/GrDrawState.cpp
@@ -7,6 +7,7 @@
#include "GrDrawState.h"
+#include "GrBlend.h"
#include "GrInvariantOutput.h"
#include "GrOptDrawState.h"
#include "GrPaint.h"
@@ -755,7 +756,7 @@ bool GrDrawState::willBlendWithDst() const {
if (kISA_GrBlendCoeff == dstCoeff && srcAIsOne) {
bsalomon 2014/11/12 21:33:38 At a minimum we can just change this srcAIsOne to
dstCoeff = kZero_GrBlendCoeff;
}
- if (kOne_GrBlendCoeff != srcCoeff ||
+ if (GrBlendCoeffRefsDst(srcCoeff) ||
kZero_GrBlendCoeff != dstCoeff ||
this->willEffectReadDstColor()) {
return true;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698