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

Side by Side Diff: src/gpu/SkGrPriv.h

Issue 2074103004: Revert of More removal of SkColorProfileType... (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 4 years, 6 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 | « src/gpu/SkGr.cpp ('k') | tools/flags/SkCommonFlags.h » ('j') | 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 2015 Google Inc. 2 * Copyright 2015 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 #ifndef SkGrPriv_DEFINED 8 #ifndef SkGrPriv_DEFINED
9 #define SkGrPriv_DEFINED 9 #define SkGrPriv_DEFINED
10 10
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
95 const SkMatrix& viewM, 95 const SkMatrix& viewM,
96 sk_sp<GrFragmentProcessor> fp, 96 sk_sp<GrFragmentProcessor> fp,
97 bool textureIsAlphaOnly, 97 bool textureIsAlphaOnly,
98 bool allowSRGBInputs, 98 bool allowSRGBInputs,
99 GrPaint* grPaint); 99 GrPaint* grPaint);
100 100
101 ////////////////////////////////////////////////////////////////////////////// 101 //////////////////////////////////////////////////////////////////////////////
102 102
103 GrSurfaceDesc GrImageInfoToSurfaceDesc(const SkImageInfo&, const GrCaps&); 103 GrSurfaceDesc GrImageInfoToSurfaceDesc(const SkImageInfo&, const GrCaps&);
104 104
105 bool GrPixelConfigToColorAndColorSpace(GrPixelConfig, SkColorType*, sk_sp<SkColo rSpace>*); 105 bool GrPixelConfig2ColorAndProfileType(GrPixelConfig, SkColorType*, SkColorProfi leType*);
106 106
107 /** 107 /**
108 * If the compressed data in the SkData is supported (as a texture format, this returns 108 * If the compressed data in the SkData is supported (as a texture format, this returns
109 * the pixel-config that should be used, and sets outStartOfDataToUpload to the ptr into 109 * the pixel-config that should be used, and sets outStartOfDataToUpload to the ptr into
110 * the data where the actual raw data starts (skipping any header bytes). 110 * the data where the actual raw data starts (skipping any header bytes).
111 * 111 *
112 * If the compressed data is not supported, this returns kUnknown_GrPixelConfig , and 112 * If the compressed data is not supported, this returns kUnknown_GrPixelConfig , and
113 * ignores outStartOfDataToUpload. 113 * ignores outStartOfDataToUpload.
114 */ 114 */
115 GrPixelConfig GrIsCompressedTextureDataSupported(GrContext* ctx, SkData* data, 115 GrPixelConfig GrIsCompressedTextureDataSupported(GrContext* ctx, SkData* data,
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
147 GR_STATIC_ASSERT((int)kIDC_GrBlendCoeff == (int)SkXfermode::kIDC_Coeff); 147 GR_STATIC_ASSERT((int)kIDC_GrBlendCoeff == (int)SkXfermode::kIDC_Coeff);
148 GR_STATIC_ASSERT((int)kSA_GrBlendCoeff == (int)SkXfermode::kSA_Coeff); 148 GR_STATIC_ASSERT((int)kSA_GrBlendCoeff == (int)SkXfermode::kSA_Coeff);
149 GR_STATIC_ASSERT((int)kISA_GrBlendCoeff == (int)SkXfermode::kISA_Coeff); 149 GR_STATIC_ASSERT((int)kISA_GrBlendCoeff == (int)SkXfermode::kISA_Coeff);
150 GR_STATIC_ASSERT((int)kDA_GrBlendCoeff == (int)SkXfermode::kDA_Coeff); 150 GR_STATIC_ASSERT((int)kDA_GrBlendCoeff == (int)SkXfermode::kDA_Coeff);
151 GR_STATIC_ASSERT((int)kIDA_GrBlendCoeff == (int)SkXfermode::kIDA_Coeff); 151 GR_STATIC_ASSERT((int)kIDA_GrBlendCoeff == (int)SkXfermode::kIDA_Coeff);
152 GR_STATIC_ASSERT(SkXfermode::kCoeffCount == 10); 152 GR_STATIC_ASSERT(SkXfermode::kCoeffCount == 10);
153 153
154 #define SkXfermodeCoeffToGrBlendCoeff(X) ((GrBlendCoeff)(X)) 154 #define SkXfermodeCoeffToGrBlendCoeff(X) ((GrBlendCoeff)(X))
155 155
156 #endif 156 #endif
OLDNEW
« no previous file with comments | « src/gpu/SkGr.cpp ('k') | tools/flags/SkCommonFlags.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698