| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2010 Google Inc. | 2 * Copyright 2010 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 | 8 |
| 9 #include "SkGr.h" | 9 #include "SkGr.h" |
| 10 #include "SkGrPriv.h" | 10 #include "SkGrPriv.h" |
| (...skipping 449 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 460 ct = kBGRA_8888_SkColorType; | 460 ct = kBGRA_8888_SkColorType; |
| 461 break; | 461 break; |
| 462 case kSRGBA_8888_GrPixelConfig: | 462 case kSRGBA_8888_GrPixelConfig: |
| 463 ct = kRGBA_8888_SkColorType; | 463 ct = kRGBA_8888_SkColorType; |
| 464 pt = kSRGB_SkColorProfileType; | 464 pt = kSRGB_SkColorProfileType; |
| 465 break; | 465 break; |
| 466 case kSBGRA_8888_GrPixelConfig: | 466 case kSBGRA_8888_GrPixelConfig: |
| 467 ct = kBGRA_8888_SkColorType; | 467 ct = kBGRA_8888_SkColorType; |
| 468 pt = kSRGB_SkColorProfileType; | 468 pt = kSRGB_SkColorProfileType; |
| 469 break; | 469 break; |
| 470 case kRGBA_half_GrPixelConfig: |
| 471 ct = kRGBA_F16_SkColorType; |
| 472 break; |
| 470 default: | 473 default: |
| 471 return false; | 474 return false; |
| 472 } | 475 } |
| 473 if (ctOut) { | 476 if (ctOut) { |
| 474 *ctOut = ct; | 477 *ctOut = ct; |
| 475 } | 478 } |
| 476 if (ptOut) { | 479 if (ptOut) { |
| 477 *ptOut = pt; | 480 *ptOut = pt; |
| 478 } | 481 } |
| 479 return true; | 482 return true; |
| (...skipping 276 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 756 SkErrorInternals::SetError( kInvalidPaint_SkError, | 759 SkErrorInternals::SetError( kInvalidPaint_SkError, |
| 757 "Sorry, I don't understand the filtering
" | 760 "Sorry, I don't understand the filtering
" |
| 758 "mode you asked for. Falling back to " | 761 "mode you asked for. Falling back to " |
| 759 "MIPMaps."); | 762 "MIPMaps."); |
| 760 textureFilterMode = GrTextureParams::kMipMap_FilterMode; | 763 textureFilterMode = GrTextureParams::kMipMap_FilterMode; |
| 761 break; | 764 break; |
| 762 | 765 |
| 763 } | 766 } |
| 764 return textureFilterMode; | 767 return textureFilterMode; |
| 765 } | 768 } |
| OLD | NEW |