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

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

Issue 1789663002: sRGB support in Ganesh. Several pieces: (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Squelch assert when blurring sRGB Created 4 years, 9 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/SkGrPixelRef.cpp ('k') | src/gpu/effects/GrConfigConversionEffect.cpp » ('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 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
88 lookup. If there is a shader, then its output will only be used if the text ure is alpha8. */ 88 lookup. If there is a shader, then its output will only be used if the text ure is alpha8. */
89 bool SkPaintToGrPaintWithTexture(GrContext* context, 89 bool SkPaintToGrPaintWithTexture(GrContext* context,
90 const SkPaint& paint, 90 const SkPaint& paint,
91 const SkMatrix& viewM, 91 const SkMatrix& viewM,
92 const GrFragmentProcessor* fp, 92 const GrFragmentProcessor* fp,
93 bool textureIsAlphaOnly, 93 bool textureIsAlphaOnly,
94 GrPaint* grPaint); 94 GrPaint* grPaint);
95 95
96 ////////////////////////////////////////////////////////////////////////////// 96 //////////////////////////////////////////////////////////////////////////////
97 97
98 GrSurfaceDesc GrImageInfoToSurfaceDesc(const SkImageInfo&); 98 GrSurfaceDesc GrImageInfoToSurfaceDesc(const SkImageInfo&, const GrCaps&);
99 99
100 bool GrPixelConfig2ColorAndProfileType(GrPixelConfig, SkColorType*, SkColorProfi leType*); 100 bool GrPixelConfig2ColorAndProfileType(GrPixelConfig, SkColorType*, SkColorProfi leType*);
101 101
102 /** 102 /**
103 * If the compressed data in the SkData is supported (as a texture format, this returns 103 * If the compressed data in the SkData is supported (as a texture format, this returns
104 * the pixel-config that should be used, and sets outStartOfDataToUpload to the ptr into 104 * the pixel-config that should be used, and sets outStartOfDataToUpload to the ptr into
105 * the data where the actual raw data starts (skipping any header bytes). 105 * the data where the actual raw data starts (skipping any header bytes).
106 * 106 *
107 * If the compressed data is not supported, this returns kUnknown_GrPixelConfig , and 107 * If the compressed data is not supported, this returns kUnknown_GrPixelConfig , and
108 * ignores outStartOfDataToUpload. 108 * ignores outStartOfDataToUpload.
(...skipping 27 matching lines...) Expand all
136 GR_STATIC_ASSERT((int)kIDC_GrBlendCoeff == (int)SkXfermode::kIDC_Coeff); 136 GR_STATIC_ASSERT((int)kIDC_GrBlendCoeff == (int)SkXfermode::kIDC_Coeff);
137 GR_STATIC_ASSERT((int)kSA_GrBlendCoeff == (int)SkXfermode::kSA_Coeff); 137 GR_STATIC_ASSERT((int)kSA_GrBlendCoeff == (int)SkXfermode::kSA_Coeff);
138 GR_STATIC_ASSERT((int)kISA_GrBlendCoeff == (int)SkXfermode::kISA_Coeff); 138 GR_STATIC_ASSERT((int)kISA_GrBlendCoeff == (int)SkXfermode::kISA_Coeff);
139 GR_STATIC_ASSERT((int)kDA_GrBlendCoeff == (int)SkXfermode::kDA_Coeff); 139 GR_STATIC_ASSERT((int)kDA_GrBlendCoeff == (int)SkXfermode::kDA_Coeff);
140 GR_STATIC_ASSERT((int)kIDA_GrBlendCoeff == (int)SkXfermode::kIDA_Coeff); 140 GR_STATIC_ASSERT((int)kIDA_GrBlendCoeff == (int)SkXfermode::kIDA_Coeff);
141 GR_STATIC_ASSERT(SkXfermode::kCoeffCount == 10); 141 GR_STATIC_ASSERT(SkXfermode::kCoeffCount == 10);
142 142
143 #define SkXfermodeCoeffToGrBlendCoeff(X) ((GrBlendCoeff)(X)) 143 #define SkXfermodeCoeffToGrBlendCoeff(X) ((GrBlendCoeff)(X))
144 144
145 #endif 145 #endif
OLDNEW
« no previous file with comments | « src/gpu/SkGrPixelRef.cpp ('k') | src/gpu/effects/GrConfigConversionEffect.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698