Index: src/image/SkSurface_Gpu.cpp |
=================================================================== |
--- src/image/SkSurface_Gpu.cpp (revision 10357) |
+++ src/image/SkSurface_Gpu.cpp (working copy) |
@@ -72,10 +72,7 @@ |
} |
SkImage* SkSurface_Gpu::onNewImageSnapshot() { |
- |
- GrRenderTarget* rt = fDevice->accessRenderTarget(); |
- |
- return SkImage::NewTexture(rt->asTexture()); |
+ return SkImage::NewTexture(fDevice->accessBitmap(false)); |
} |
void SkSurface_Gpu::onDraw(SkCanvas* canvas, SkScalar x, SkScalar y, |