Index: src/gpu/SkGpuDevice.cpp |
diff --git a/src/gpu/SkGpuDevice.cpp b/src/gpu/SkGpuDevice.cpp |
index 792ce6d30d59a42f4fdf66e62ad1b8f82e4dfa6c..30b3668d6b74a709568e357470aa5d182e6cf722 100644 |
--- a/src/gpu/SkGpuDevice.cpp |
+++ b/src/gpu/SkGpuDevice.cpp |
@@ -151,10 +151,9 @@ |
fRenderTarget = SkRef(surface->asRenderTarget()); |
- SkImageInfo info = surface->surfacePriv().info(); |
SkPixelRef* pr = SkNEW_ARGS(SkGrPixelRef, |
- (info, surface, SkToBool(flags & kCached_Flag))); |
- fLegacyBitmap.setInfo(info); |
+ (surface->info(), surface, SkToBool(flags & kCached_Flag))); |
+ fLegacyBitmap.setInfo(surface->info()); |
fLegacyBitmap.setPixelRef(pr)->unref(); |
this->setPixelGeometry(props.pixelGeometry()); |
@@ -692,7 +691,7 @@ |
SkBitmap wrap_texture(GrTexture* texture) { |
SkBitmap result; |
- result.setInfo(texture->surfacePriv().info()); |
+ result.setInfo(texture->info()); |
result.setPixelRef(SkNEW_ARGS(SkGrPixelRef, (result.info(), texture)))->unref(); |
return result; |
} |