Index: src/gpu/SkGrPixelRef.cpp |
diff --git a/src/gpu/SkGrPixelRef.cpp b/src/gpu/SkGrPixelRef.cpp |
index 448f2d3931ce233b69672306bcdaf2d942e784c0..1784d5595eec9c1ede41033395cc9a09302aba0b 100644 |
--- a/src/gpu/SkGrPixelRef.cpp |
+++ b/src/gpu/SkGrPixelRef.cpp |
@@ -62,7 +62,7 @@ static SkGrPixelRef* copy_to_new_texture_pixelref(GrTexture* texture, SkColorTyp |
if (NULL == context) { |
return NULL; |
} |
- GrTextureDesc desc; |
+ GrSurfaceDesc desc; |
SkIRect srcRect; |
@@ -77,7 +77,7 @@ static SkGrPixelRef* copy_to_new_texture_pixelref(GrTexture* texture, SkColorTyp |
desc.fHeight = subset->height(); |
srcRect = *subset; |
} |
- desc.fFlags = kRenderTarget_GrTextureFlagBit | kNoStencil_GrTextureFlagBit; |
+ desc.fFlags = kRenderTarget_GrSurfaceFlag | kNoStencil_GrSurfaceFlag; |
desc.fConfig = SkImageInfo2GrPixelConfig(dstCT, kPremul_SkAlphaType); |
GrTexture* dst = context->createUncachedTexture(desc, NULL, 0); |