Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(257)

Side by Side Diff: src/gpu/SkGr.cpp

Issue 1884753002: Add missing F16 case to reverse pixel config conversion (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698