From bb7f076c0c72ea7c70e75674d3aa07b3acb645d4 Mon Sep 17 00:00:00 2001 From: "bsalomon@google.com" Date: Tue, 17 May 2011 18:02:35 +0000 Subject: [PATCH] Fix enums in code path that uses uncached GrRenderTargets behind SkGpuDevices Review URL: http://codereview.appspot.com/4535081/ git-svn-id: http://skia.googlecode.com/svn/trunk@1352 2bbb7eff-a529-9590-31e7-b0007b416f81 --- src/gpu/SkGpuDevice.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/gpu/SkGpuDevice.cpp b/src/gpu/SkGpuDevice.cpp index 360fa34..508e493 100644 --- a/src/gpu/SkGpuDevice.cpp +++ b/src/gpu/SkGpuDevice.cpp @@ -130,9 +130,9 @@ SkGpuDevice::SkGpuDevice(GrContext* context, SkASSERT(NULL != fTexture->asRenderTarget()); } #else - const GrGpu::TextureDesc desc = { - GrGpu::kRenderTarget_TextureFlag, - GrGpu::kNone_AALevel, + const GrTextureDesc desc = { + kRenderTarget_GrTextureFlagBit, + kNone_GrAALevel, this->width(), this->height(), SkGr::Bitmap2PixelConfig(bm) -- 2.7.4