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

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: Remove helper function for old pixel-config method of enabling decode Created 4 years, 8 months 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
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?
bsalomon 2016/04/05 13:24:01 Shouldn't matter. This is used to draw clip masks
Brian Osman 2016/04/05 15:36:41 Acknowledged.
paint.setAntiAlias(doAA);
paint.setCoverageSetOpXPFactory(op, invert);
@@ -901,6 +902,7 @@ bool GrDrawContextPriv::drawAndStencilPath(const SkIRect* scissorRect,
}
GrPaint paint;
+ // SRGBTODO: AllowSRGBInputs?
bsalomon 2016/04/05 13:24:01 Also drawing clip masks here.
Brian Osman 2016/04/05 15:36:41 Acknowledged.
paint.setCoverageSetOpXPFactory(op, invert);
// TODO: it is unfortunate that we have to convert this to a GrClip to

Powered by Google App Engine
This is Rietveld 408576698