| Index: src/gpu/SkGpuDevice.cpp
|
| diff --git a/src/gpu/SkGpuDevice.cpp b/src/gpu/SkGpuDevice.cpp
|
| index 074eda196b561038b85183cf69abc78d2518dead..dd44eb13899adf96f6e8fc9099435df3a6ae2466 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;
|
| }
|
|
|