diff options
author | Brian Salomon <bsalomon@google.com> | 2018-03-19 12:29:39 -0400 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2018-03-19 17:19:45 +0000 |
commit | c9a642edf2d1c7f5380fe829adbb1a692f9969a6 (patch) | |
tree | 8d5ee55a8ae11c14a5e14867baf52efa38851a2a /src/gpu/mock | |
parent | 8430eace0bbf7258b25e42f289b6a63f38b075e7 (diff) |
New read pixels implementation that is simpler but does all conversions on CPU.
Change-Id: Ia548cd24a8544b35a233311706faf48de353b7cf
Reviewed-on: https://skia-review.googlesource.com/109902
Commit-Queue: Brian Salomon <bsalomon@google.com>
Reviewed-by: Robert Phillips <robertphillips@google.com>
Diffstat (limited to 'src/gpu/mock')
-rw-r--r-- | src/gpu/mock/GrMockCaps.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gpu/mock/GrMockCaps.h b/src/gpu/mock/GrMockCaps.h index 4bcd4599c5..27d295ebd5 100644 --- a/src/gpu/mock/GrMockCaps.h +++ b/src/gpu/mock/GrMockCaps.h @@ -67,7 +67,8 @@ public: return 0; } - bool surfaceSupportsWritePixels(const GrSurface* surface) const override { return true; } + bool surfaceSupportsWritePixels(const GrSurface*) const override { return true; } + bool surfaceSupportsReadPixels(const GrSurface*) const override { return true; } bool initDescForDstCopy(const GrRenderTargetProxy* src, GrSurfaceDesc* desc, GrSurfaceOrigin*, bool* rectsMustMatch, bool* disallowSubrect) const override { |