OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2008 The Android Open Source Project | 2 * Copyright 2008 The Android Open Source Project |
3 * | 3 * |
4 * Use of this source code is governed by a BSD-style license that can be | 4 * Use of this source code is governed by a BSD-style license that can be |
5 * found in the LICENSE file. | 5 * found in the LICENSE file. |
6 */ | 6 */ |
7 | 7 |
8 #include "SkBitmapDevice.h" | 8 #include "SkBitmapDevice.h" |
9 #include "SkCanvas.h" | 9 #include "SkCanvas.h" |
10 #include "SkCanvasPriv.h" | 10 #include "SkCanvasPriv.h" |
(...skipping 3317 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3328 case kOpaque_SkAlphaType: | 3328 case kOpaque_SkAlphaType: |
3329 break; | 3329 break; |
3330 default: | 3330 default: |
3331 return false; | 3331 return false; |
3332 } | 3332 } |
3333 | 3333 |
3334 switch (info.colorType()) { | 3334 switch (info.colorType()) { |
3335 case kAlpha_8_SkColorType: | 3335 case kAlpha_8_SkColorType: |
3336 case kRGB_565_SkColorType: | 3336 case kRGB_565_SkColorType: |
3337 case kN32_SkColorType: | 3337 case kN32_SkColorType: |
| 3338 case kRGBA_F16_SkColorType: |
3338 break; | 3339 break; |
3339 default: | 3340 default: |
3340 return false; | 3341 return false; |
3341 } | 3342 } |
3342 | 3343 |
3343 return true; | 3344 return true; |
3344 } | 3345 } |
3345 | 3346 |
3346 SkCanvas* SkCanvas::NewRasterDirect(const SkImageInfo& info, void* pixels, size_
t rowBytes) { | 3347 SkCanvas* SkCanvas::NewRasterDirect(const SkImageInfo& info, void* pixels, size_
t rowBytes) { |
3347 if (!supported_for_raster_canvas(info)) { | 3348 if (!supported_for_raster_canvas(info)) { |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3395 const SkCanvas::ClipOp SkCanvas::kXOR_Op; | 3396 const SkCanvas::ClipOp SkCanvas::kXOR_Op; |
3396 const SkCanvas::ClipOp SkCanvas::kReverseDifference_Op; | 3397 const SkCanvas::ClipOp SkCanvas::kReverseDifference_Op; |
3397 const SkCanvas::ClipOp SkCanvas::kReplace_Op; | 3398 const SkCanvas::ClipOp SkCanvas::kReplace_Op; |
3398 | 3399 |
3399 static_assert((int)SkRegion::kDifference_Op == (int)kDifference_SkClipOp
, ""); | 3400 static_assert((int)SkRegion::kDifference_Op == (int)kDifference_SkClipOp
, ""); |
3400 static_assert((int)SkRegion::kIntersect_Op == (int)kIntersect_SkClipOp,
""); | 3401 static_assert((int)SkRegion::kIntersect_Op == (int)kIntersect_SkClipOp,
""); |
3401 static_assert((int)SkRegion::kUnion_Op == (int)kUnion_SkClipOp, "")
; | 3402 static_assert((int)SkRegion::kUnion_Op == (int)kUnion_SkClipOp, "")
; |
3402 static_assert((int)SkRegion::kXOR_Op == (int)kXOR_SkClipOp, ""); | 3403 static_assert((int)SkRegion::kXOR_Op == (int)kXOR_SkClipOp, ""); |
3403 static_assert((int)SkRegion::kReverseDifference_Op == (int)kReverseDifference_S
kClipOp, ""); | 3404 static_assert((int)SkRegion::kReverseDifference_Op == (int)kReverseDifference_S
kClipOp, ""); |
3404 static_assert((int)SkRegion::kReplace_Op == (int)kReplace_SkClipOp, "
"); | 3405 static_assert((int)SkRegion::kReplace_Op == (int)kReplace_SkClipOp, "
"); |
OLD | NEW |