| 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 #ifndef SkGr_DEFINED | 8 #ifndef SkGr_DEFINED |
| 9 #define SkGr_DEFINED | 9 #define SkGr_DEFINED |
| 10 | 10 |
| (...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 77 | 77 |
| 78 static inline GrPixelConfig SkImageInfo2GrPixelConfig(const SkImageInfo& info, c
onst GrCaps& caps) { | 78 static inline GrPixelConfig SkImageInfo2GrPixelConfig(const SkImageInfo& info, c
onst GrCaps& caps) { |
| 79 return SkImageInfo2GrPixelConfig(info.colorType(), info.alphaType(), info.co
lorSpace(), caps); | 79 return SkImageInfo2GrPixelConfig(info.colorType(), info.alphaType(), info.co
lorSpace(), caps); |
| 80 } | 80 } |
| 81 | 81 |
| 82 GrTextureParams::FilterMode GrSkFilterQualityToGrFilterMode(SkFilterQuality pain
tFilterQuality, | 82 GrTextureParams::FilterMode GrSkFilterQualityToGrFilterMode(SkFilterQuality pain
tFilterQuality, |
| 83 const SkMatrix& view
M, | 83 const SkMatrix& view
M, |
| 84 const SkMatrix& loca
lM, | 84 const SkMatrix& loca
lM, |
| 85 bool* doBicubic); | 85 bool* doBicubic); |
| 86 | 86 |
| 87 //////////////////////////////////////////////////////////////////////////////// | |
| 88 | |
| 89 SkImageInfo GrMakeInfoFromTexture(GrTexture* tex, int w, int h, bool isOpaque, | |
| 90 sk_sp<SkColorSpace> colorSpace = nullptr); | |
| 91 | |
| 92 #endif | 87 #endif |
| OLD | NEW |