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

Unified Diff: src/gpu/GrOptDrawState.cpp

Issue 787233003: Add XP to handle the cases where we disable color write. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: update Created 6 years 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 | « src/gpu/GrOptDrawState.h ('k') | src/gpu/GrPaint.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/gpu/GrOptDrawState.cpp
diff --git a/src/gpu/GrOptDrawState.cpp b/src/gpu/GrOptDrawState.cpp
index d12cf0cad5f2aa0bea47218ba1ab9cc3e0222776..5e19871b8c9b2020272a98701b67775108a368b7 100644
--- a/src/gpu/GrOptDrawState.cpp
+++ b/src/gpu/GrOptDrawState.cpp
@@ -53,7 +53,6 @@ GrOptDrawState::GrOptDrawState(const GrDrawState& drawState,
optFlags = xferProcessor->getOptimizations(colorPOI,
coveragePOI,
- drawState.isColorWriteDisabled(),
drawState.getStencil().doesWrite(),
&overrideColor,
caps);
@@ -86,9 +85,6 @@ GrOptDrawState::GrOptDrawState(const GrDrawState& drawState,
if (drawState.isHWAntialias()) {
fFlags |= kHWAA_Flag;
}
- if (drawState.isColorWriteDisabled()) {
- fFlags |= kDisableColorWrite_Flag;
- }
if (drawState.isDither()) {
fFlags |= kDither_Flag;
}
« no previous file with comments | « src/gpu/GrOptDrawState.h ('k') | src/gpu/GrPaint.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698