aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu/SkGpuDevice.cpp
diff options
context:
space:
mode:
authorGravatar bsalomon <bsalomon@google.com>2014-09-30 12:18:44 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2014-09-30 12:18:44 -0700
commitafbf2d6273cd22c683f20a7e5773843876af3085 (patch)
treece03339b06e13e45b5055b7cc5abdeb57cbdd86c /src/gpu/SkGpuDevice.cpp
parent8de02f4bf3dfb6178132231d03caec9f9a5d0beb (diff)
Make "priv" classes for GrTexure and GrSurface.
R=robertphillips@google.com, egdaniel@google.com, joshualitt@google.com Author: bsalomon@google.com Review URL: https://codereview.chromium.org/596053002
Diffstat (limited to 'src/gpu/SkGpuDevice.cpp')
-rw-r--r--src/gpu/SkGpuDevice.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/gpu/SkGpuDevice.cpp b/src/gpu/SkGpuDevice.cpp
index 455a8abe01..6eaed89828 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;
}