diff options
author | 2011-11-08 19:20:57 +0000 | |
---|---|---|
committer | 2011-11-08 19:20:57 +0000 | |
commit | 0a97be216df494291fe929b79d438809af7e9c83 (patch) | |
tree | 52f2ec03220298033823783657755a023f37d221 /src/gpu/GrGpuGL.h | |
parent | 318cf92202b765e90b7b53cb92a5a3649f8536d0 (diff) |
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
Diffstat (limited to 'src/gpu/GrGpuGL.h')
-rw-r--r-- | src/gpu/GrGpuGL.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gpu/GrGpuGL.h b/src/gpu/GrGpuGL.h index 1dd9c80fd3..84c62f8301 100644 --- a/src/gpu/GrGpuGL.h +++ b/src/gpu/GrGpuGL.h @@ -29,6 +29,9 @@ public: GrGLBinding glBinding() const { return fGLBinding; } GrGLVersion glVersion() const { return fGLVersion; } + virtual GrPixelConfig preferredReadPixelsConfig(GrPixelConfig config) + SK_OVERRIDE; + virtual bool readPixelsWillPayForYFlip( GrRenderTarget* renderTarget, int left, int top, |