Chromium Code Reviews

Unified Diff: src/gpu/GrDrawContext.cpp

Issue 1845283003: Gamma-correctness pushed into Skia, top-down. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Undo odd change to GrBlurUtils - no longer needed Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Index: src/gpu/GrDrawContext.cpp
diff --git a/src/gpu/GrDrawContext.cpp b/src/gpu/GrDrawContext.cpp
index 9110b34d6f38be969a62d637fedbed0e8e28f36e..37e42ff2440ffabd4cb5c393345056dffd0f6f9c 100644
--- a/src/gpu/GrDrawContext.cpp
+++ b/src/gpu/GrDrawContext.cpp
@@ -386,6 +386,7 @@ bool GrDrawContextPriv::drawAndStencilRect(const SkIRect* scissorRect,
AutoCheckFlush acf(fDrawContext->fDrawingManager);
GrPaint paint;
+ // SRGBTODO: AllowSRGBInputs?
paint.setAntiAlias(doAA);
paint.setCoverageSetOpXPFactory(op, invert);
@@ -901,6 +902,7 @@ bool GrDrawContextPriv::drawAndStencilPath(const SkIRect* scissorRect,
}
GrPaint paint;
+ // SRGBTODO: AllowSRGBInputs?
paint.setCoverageSetOpXPFactory(op, invert);
// TODO: it is unfortunate that we have to convert this to a GrClip to

Powered by Google App Engine