diff options
author | 2011-11-07 15:54:49 +0000 | |
---|---|---|
committer | 2011-11-07 15:54:49 +0000 | |
commit | c43649962221c348d656d425a3fa9b29c78231d4 (patch) | |
tree | bf88793470f20fa99c9fb51971b90b5510a1a880 /src/gpu/GrGpu.cpp | |
parent | 6ff82553df07ec9502bfe5b4a97a2c2aaf15e39f (diff) |
[GPU] Add explicit byte order and PM vs. UPM 8888 configs
Review URL: http://codereview.appspot.com/5347042/
git-svn-id: http://skia.googlecode.com/svn/trunk@2618 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'src/gpu/GrGpu.cpp')
-rw-r--r-- | src/gpu/GrGpu.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/gpu/GrGpu.cpp b/src/gpu/GrGpu.cpp index b7d1395098..7da560e195 100644 --- a/src/gpu/GrGpu.cpp +++ b/src/gpu/GrGpu.cpp @@ -242,11 +242,12 @@ void GrGpu::forceRenderTargetFlush() { bool GrGpu::readPixels(GrRenderTarget* target, int left, int top, int width, int height, GrPixelConfig config, void* buffer, - size_t rowBytes) { - + size_t rowBytes, bool invertY) { + GrAssert(GrPixelConfigIsUnpremultiplied(config) == + GrPixelConfigIsUnpremultiplied(target->config())); this->handleDirtyContext(); return this->onReadPixels(target, left, top, width, height, - config, buffer, rowBytes); + config, buffer, rowBytes, invertY); } //////////////////////////////////////////////////////////////////////////////// |