| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2013 Google Inc. | 2 * Copyright 2013 Google Inc. |
| 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 "SkConfig8888.h" | 9 #include "SkConfig8888.h" |
| 10 #include "SkDraw.h" | 10 #include "SkDraw.h" |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 48 SkAlphaType canonicalAlphaType = info.alphaType(); | 48 SkAlphaType canonicalAlphaType = info.alphaType(); |
| 49 | 49 |
| 50 switch (info.colorType()) { | 50 switch (info.colorType()) { |
| 51 case kAlpha_8_SkColorType: | 51 case kAlpha_8_SkColorType: |
| 52 break; | 52 break; |
| 53 case kRGB_565_SkColorType: | 53 case kRGB_565_SkColorType: |
| 54 canonicalAlphaType = kOpaque_SkAlphaType; | 54 canonicalAlphaType = kOpaque_SkAlphaType; |
| 55 break; | 55 break; |
| 56 case kN32_SkColorType: | 56 case kN32_SkColorType: |
| 57 break; | 57 break; |
| 58 case kRGBA_F16_SkColorType: |
| 59 break; |
| 58 default: | 60 default: |
| 59 return false; | 61 return false; |
| 60 } | 62 } |
| 61 | 63 |
| 62 if (newAlphaType) { | 64 if (newAlphaType) { |
| 63 *newAlphaType = canonicalAlphaType; | 65 *newAlphaType = canonicalAlphaType; |
| 64 } | 66 } |
| 65 return true; | 67 return true; |
| 66 } | 68 } |
| 67 | 69 |
| (...skipping 319 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 387 paint.getRasterizer() || | 389 paint.getRasterizer() || |
| 388 paint.getPathEffect() || | 390 paint.getPathEffect() || |
| 389 paint.isFakeBoldText() || | 391 paint.isFakeBoldText() || |
| 390 paint.getStyle() != SkPaint::kFill_Style || | 392 paint.getStyle() != SkPaint::kFill_Style || |
| 391 !SkXfermode::IsMode(paint.getXfermode(), SkXfermode::kSrcOver_Mode)) | 393 !SkXfermode::IsMode(paint.getXfermode(), SkXfermode::kSrcOver_Mode)) |
| 392 { | 394 { |
| 393 return true; | 395 return true; |
| 394 } | 396 } |
| 395 return false; | 397 return false; |
| 396 } | 398 } |
| OLD | NEW |