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