aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu/GrSurfacePriv.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/gpu/GrSurfacePriv.h')
-rw-r--r--src/gpu/GrSurfacePriv.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gpu/GrSurfacePriv.h b/src/gpu/GrSurfacePriv.h
index cd1f6b92ba..47bd44f4ef 100644
--- a/src/gpu/GrSurfacePriv.h
+++ b/src/gpu/GrSurfacePriv.h
@@ -18,10 +18,10 @@
class GrSurfacePriv {
public:
/**
- * Derive a SkImageInfo from the surface's descriptor. This is lossy as ImageInfo has fields not
- * known to GrSurface (e.g. alphaType).
+ * Derive a SkImageInfo from the surface's descriptor. The caller must provide the alpha type as
+ * GrSurface has no equivalent.
*/
- SkImageInfo info() const { return fSurface->info(); }
+ SkImageInfo info(SkAlphaType alphaType) const { return fSurface->info(alphaType); }
/**
* Write the contents of the surface to a PNG. Returns true if successful.