Index: example/HelloWorld.cpp |
diff --git a/example/HelloWorld.cpp b/example/HelloWorld.cpp |
index 32bee5dccd445a81e8724d959b7b7748e6349d63..c2dd7d89f1b648e967bbaa92f52bb55f6899759c 100644 |
--- a/example/HelloWorld.cpp |
+++ b/example/HelloWorld.cpp |
@@ -155,9 +155,13 @@ |
if (snap->peekPixels(&pmap)) { |
const SkImageInfo& info = pmap.info(); |
fRenderTarget->writePixels(0, 0, snap->width(), snap->height(), |
- SkImageInfo2GrPixelConfig(info, *fContext->caps()), |
- pmap.addr(), pmap.rowBytes(), |
- GrContext::kFlushWrites_PixelOp); |
+ SkImageInfo2GrPixelConfig(info.colorType(), |
+ info.alphaType(), |
+ info.profileType(), |
+ *fContext->caps()), |
+ pmap.addr(), |
+ pmap.rowBytes(), |
+ GrContext::kFlushWrites_PixelOp); |
} |
} |
INHERITED::present(); |