| Index: src/gpu/GrGpu.cpp
|
| diff --git a/src/gpu/GrGpu.cpp b/src/gpu/GrGpu.cpp
|
| index 7199b4d97694c62ba0555acf0a1b65939474459f..e14e8929b04bbc84de2fa52f14298befac2733c2 100644
|
| --- a/src/gpu/GrGpu.cpp
|
| +++ b/src/gpu/GrGpu.cpp
|
| @@ -277,6 +277,12 @@ bool GrGpu::getReadPixelsInfo(GrSurface* srcSurface, int width, int height, size
|
| return false;
|
| }
|
|
|
| + // We currently do not support reading into the packed formats 565 or 4444 as they are not
|
| + // required to have read back support on all devices and backends.
|
| + if (kRGB_565_GrPixelConfig == readConfig || kRGBA_4444_GrPixelConfig == readConfig) {
|
| + return false;
|
| + }
|
| +
|
| if (!this->onGetReadPixelsInfo(srcSurface, width, height, rowBytes, readConfig, drawPreference,
|
| tempDrawInfo)) {
|
| return false;
|
|
|