| commit | 0a97be216df494291fe929b79d438809af7e9c83 | [log] [tgz] |
|---|---|---|
| author | bsalomon@google.com <bsalomon@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | Tue Nov 08 19:20:57 2011 +0000 |
| committer | bsalomon@google.com <bsalomon@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | Tue Nov 08 19:20:57 2011 +0000 |
| tree | 52f2ec03220298033823783657755a023f37d221 | |
| parent | 318cf92202b765e90b7b53cb92a5a3649f8536d0 [diff] [blame] |
When GL_RGBA readPixels are slow do swizzle using a draw then readPixels with GL_BGRA Review URL: http://codereview.appspot.com/5339051/ git-svn-id: http://skia.googlecode.com/svn/trunk@2631 2bbb7eff-a529-9590-31e7-b0007b416f81
diff --git a/src/gpu/GrGLTexture.h b/src/gpu/GrGLTexture.h index 1f9636a..a6888ee 100644 --- a/src/gpu/GrGLTexture.h +++ b/src/gpu/GrGLTexture.h
@@ -55,6 +55,7 @@ GrGLenum fFilter; GrGLenum fWrapS; GrGLenum fWrapT; + GrGLenum fSwizzleRGBA[4]; void invalidate() { memset(this, 0xff, sizeof(TexParams)); } };