Index: src/gpu/SkGpuDevice.cpp |
diff --git a/src/gpu/SkGpuDevice.cpp b/src/gpu/SkGpuDevice.cpp |
index 98da472581bbba469d47668b346e1a47038bac07..ba5848b4b11996b40e3fe974f27802b76b85bc81 100644 |
--- a/src/gpu/SkGpuDevice.cpp |
+++ b/src/gpu/SkGpuDevice.cpp |
@@ -1782,7 +1782,9 @@ |
ASSERT_SINGLE_OWNER |
#ifndef SK_IGNORE_GPU_LAYER_HOISTING |
// todo: should handle this natively |
- if (paint) { |
+ if (paint || |
+ (kRGBA_8888_SkColorType != mainCanvas->imageInfo().colorType() && |
+ kBGRA_8888_SkColorType != mainCanvas->imageInfo().colorType())) { |
return false; |
} |