From 5fba7ad39a96d02c8a23cc20e47c5021b6a85baa Mon Sep 17 00:00:00 2001 From: Brian Salomon Date: Thu, 22 Mar 2018 10:01:16 -0400 Subject: Support GL_RGB textures and render targets. Bug= skia:7533 Change-Id: Iba30e90dbf2574368b773bb5cf2ebd5219559717 Reviewed-on: https://skia-review.googlesource.com/108188 Commit-Queue: Brian Salomon Reviewed-by: Robert Phillips --- dm/DMSrcSink.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'dm/DMSrcSink.cpp') diff --git a/dm/DMSrcSink.cpp b/dm/DMSrcSink.cpp index 09c88af320..cd4f111627 100644 --- a/dm/DMSrcSink.cpp +++ b/dm/DMSrcSink.cpp @@ -1881,7 +1881,8 @@ Error GPUSink::onDraw(const Src& src, SkBitmap* dst, SkWStream*, SkString* log, canvas->getGrContext()->contextPriv().dumpGpuStats(log); #endif } - if (info.colorType() == kRGB_565_SkColorType || info.colorType() == kARGB_4444_SkColorType) { + if (info.colorType() == kRGB_565_SkColorType || info.colorType() == kARGB_4444_SkColorType || + info.colorType() == kRGB_888x_SkColorType) { // We don't currently support readbacks into these formats on the GPU backend. Convert to // 32 bit. info = SkImageInfo::Make(size.width(), size.height(), kRGBA_8888_SkColorType, -- cgit v1.2.3