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