diff options
author | Brian Osman <brianosman@google.com> | 2017-04-06 10:19:06 -0400 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2017-04-06 18:17:24 +0000 |
commit | 60cd57ed9fac7806ca6881b9ba9c810ebaebe747 (patch) | |
tree | 8ea22f734a6c7161f33cbf3c1a88e83f733594b1 /include | |
parent | 6ff6af90e09068c07910174d11640e44815dd392 (diff) |
Factor out common work in readSurfacePixels and writeSurfacePixels
Use more consistent structure between the two functions.
BUG=skia:5853
Change-Id: I82465bee30025574d0d6fad9e287b187d75fff8d
Reviewed-on: https://skia-review.googlesource.com/10042
Reviewed-by: Robert Phillips <robertphillips@google.com>
Reviewed-by: Brian Salomon <bsalomon@google.com>
Commit-Queue: Eric Boren <borenet@google.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/gpu/GrContext.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/gpu/GrContext.h b/include/gpu/GrContext.h index 0987d96b2e..d820202ca8 100644 --- a/include/gpu/GrContext.h +++ b/include/gpu/GrContext.h @@ -348,8 +348,8 @@ private: * of effects that make a readToUPM->writeToPM->readToUPM cycle invariant. Otherwise, they * return NULL. They also can perform a swizzle as part of the draw. */ - sk_sp<GrFragmentProcessor> createPMToUPMEffect(sk_sp<GrTextureProxy>, const SkMatrix&); - sk_sp<GrFragmentProcessor> createUPMToPMEffect(sk_sp<GrTextureProxy>, const SkMatrix&); + sk_sp<GrFragmentProcessor> createPMToUPMEffect(sk_sp<GrFragmentProcessor>, GrPixelConfig); + sk_sp<GrFragmentProcessor> createUPMToPMEffect(sk_sp<GrFragmentProcessor>, GrPixelConfig); /** Called before either of the above two functions to determine the appropriate fragment processors for conversions. */ void testPMConversionsIfNecessary(uint32_t flags); |