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

Unified Diff: include/core/SkSurface.h

Issue 2176383002: start on apply gamma cleanup (Closed) Base URL: https://chromium.googlesource.com/skia.git@master
Patch Set: Created 4 years, 5 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
« no previous file with comments | « no previous file | src/image/SkImage_Gpu.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: include/core/SkSurface.h
diff --git a/include/core/SkSurface.h b/include/core/SkSurface.h
index 4d38d300c90ce888401dfdbcbd84a57b1b236d2d..f3aeee09fa1ec4dae96f1eb5a0842547b12ec02a 100644
--- a/include/core/SkSurface.h
+++ b/include/core/SkSurface.h
@@ -339,6 +339,13 @@ public:
void draw(SkCanvas*, SkScalar x, SkScalar y, const SkPaint*);
/**
+ * Copies contents of image to this surface, while applying a gamma curve. Fails if the image
+ * and surface are not ideniticaly sized. Fails if the surface is not gpu backed. This ignores
+ * all SkCanvas state including the SkCanvas layer stack.
+ */
+ bool blitWithGamma(SkImage* image, SkScalar gamma);
+
+ /**
* If the surface has direct access to its pixels (i.e. they are in local
* RAM) return true, and if not null, set the pixmap parameter to point to the information
* about the surface's pixels. The pixel address in the pixmap is only valid while
« no previous file with comments | « no previous file | src/image/SkImage_Gpu.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698