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

Unified Diff: include/core/SkCanvas.h

Issue 1845283003: Gamma-correctness pushed into Skia, top-down. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Rebase 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: include/core/SkCanvas.h
diff --git a/include/core/SkCanvas.h b/include/core/SkCanvas.h
index 91952c3050002d8d4ee35d59546786a8452fe223..8e675b42fc49c738d808f27e101fdf9257e66375 100644
--- a/include/core/SkCanvas.h
+++ b/include/core/SkCanvas.h
@@ -122,6 +122,13 @@ public:
*/
SkImageInfo imageInfo() const;
+ /**
+ * If the canvas is backed by pixels (cpu or gpu), this writes a copy of the SurfaceProps
+ * for the canvas to the location supplied by the caller, and returns true. Otherwise,
+ * return false and leave the supplied props unchanged.
+ */
+ bool getProps(SkSurfaceProps*) const;
+
///////////////////////////////////////////////////////////////////////////
/**
« no previous file with comments | « gm/xfermodes3.cpp ('k') | include/core/SkDevice.h » ('j') | src/effects/SkImageSource.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698