Allow F16 color type on direct raster canvases
authorjunov <junov@chromium.org>
Thu, 13 Oct 2016 20:14:27 +0000 (13:14 -0700)
committerCommit bot <commit-bot@chromium.org>
Thu, 13 Oct 2016 20:14:27 +0000 (13:14 -0700)
BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2416063002

Review-Url: https://codereview.chromium.org/2416063002

src/core/SkCanvas.cpp

index fc2e48a395c85d5d70320a93d11cc758b3eb4776..bcda0f2526ca712a95eb4525da0dc8172f1ee707 100644 (file)
@@ -3332,6 +3332,7 @@ static bool supported_for_raster_canvas(const SkImageInfo& info) {
         case kAlpha_8_SkColorType:
         case kRGB_565_SkColorType:
         case kN32_SkColorType:
+        case kRGBA_F16_SkColorType:
             break;
         default:
             return false;