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

Side by Side Diff: include/gpu/SkGr.h

Issue 2069173002: Lots of progress switching to SkColorSpace rather than SkColorProfileType (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Fix bad assert 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 | « include/core/SkPixelRef.h ('k') | include/gpu/SkGrPixelRef.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 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 #ifndef SkGr_DEFINED 8 #ifndef SkGr_DEFINED
9 #define SkGr_DEFINED 9 #define SkGr_DEFINED
10 10
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 } 65 }
66 66
67 //////////////////////////////////////////////////////////////////////////////// 67 ////////////////////////////////////////////////////////////////////////////////
68 /** Returns a texture representing the bitmap that is compatible with the GrText ureParams. The 68 /** Returns a texture representing the bitmap that is compatible with the GrText ureParams. The
69 texture is inserted into the cache (unless the bitmap is marked volatile) an d can be 69 texture is inserted into the cache (unless the bitmap is marked volatile) an d can be
70 retrieved again via this function. */ 70 retrieved again via this function. */
71 GrTexture* GrRefCachedBitmapTexture(GrContext*, const SkBitmap&, const GrTexture Params&, 71 GrTexture* GrRefCachedBitmapTexture(GrContext*, const SkBitmap&, const GrTexture Params&,
72 SkSourceGammaTreatment); 72 SkSourceGammaTreatment);
73 73
74 // TODO: Move SkImageInfo2GrPixelConfig to SkGrPriv.h (requires cleanup to SkWin dow its subclasses). 74 // TODO: Move SkImageInfo2GrPixelConfig to SkGrPriv.h (requires cleanup to SkWin dow its subclasses).
75 GrPixelConfig SkImageInfo2GrPixelConfig(SkColorType, SkAlphaType, SkColorProfile Type, const GrCaps&); 75 GrPixelConfig SkImageInfo2GrPixelConfig(SkColorType, SkAlphaType, const SkColorS pace*,
76 const GrCaps&);
76 77
77 static inline GrPixelConfig SkImageInfo2GrPixelConfig(const SkImageInfo& info, c onst GrCaps& caps) { 78 static inline GrPixelConfig SkImageInfo2GrPixelConfig(const SkImageInfo& info, c onst GrCaps& caps) {
78 return SkImageInfo2GrPixelConfig(info.colorType(), info.alphaType(), info.pr ofileType(), caps); 79 return SkImageInfo2GrPixelConfig(info.colorType(), info.alphaType(), info.co lorSpace(), caps);
79 } 80 }
80 81
81 GrTextureParams::FilterMode GrSkFilterQualityToGrFilterMode(SkFilterQuality pain tFilterQuality, 82 GrTextureParams::FilterMode GrSkFilterQualityToGrFilterMode(SkFilterQuality pain tFilterQuality,
82 const SkMatrix& view M, 83 const SkMatrix& view M,
83 const SkMatrix& loca lM, 84 const SkMatrix& loca lM,
84 bool* doBicubic); 85 bool* doBicubic);
85 86
86 //////////////////////////////////////////////////////////////////////////////// 87 ////////////////////////////////////////////////////////////////////////////////
87 88
88 SkImageInfo GrMakeInfoFromTexture(GrTexture* tex, int w, int h, bool isOpaque); 89 SkImageInfo GrMakeInfoFromTexture(GrTexture* tex, int w, int h, bool isOpaque);
89 90
90 // Using the dreaded SkGrPixelRef ... 91 // Using the dreaded SkGrPixelRef ...
91 SK_API void GrWrapTextureInBitmap(GrTexture* src, int w, int h, bool isOpaque, 92 SK_API void GrWrapTextureInBitmap(GrTexture* src, int w, int h, bool isOpaque,
92 SkBitmap* dst); 93 SkBitmap* dst);
93 94
94 #endif 95 #endif
OLDNEW
« no previous file with comments | « include/core/SkPixelRef.h ('k') | include/gpu/SkGrPixelRef.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698