OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2016 Google Inc. | 2 * Copyright 2016 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 SkSpecialImage_DEFINED | 8 #ifndef SkSpecialImage_DEFINED |
9 #define SkSpecialImage_DEFINED | 9 #define SkSpecialImage_DEFINED |
10 | 10 |
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
69 | 69 |
70 static sk_sp<SkSpecialImage> MakeFromImage(SkImageFilter::Proxy*, | 70 static sk_sp<SkSpecialImage> MakeFromImage(SkImageFilter::Proxy*, |
71 const SkIRect& subset, | 71 const SkIRect& subset, |
72 sk_sp<SkImage>); | 72 sk_sp<SkImage>); |
73 static sk_sp<SkSpecialImage> MakeFromRaster(SkImageFilter::Proxy*, | 73 static sk_sp<SkSpecialImage> MakeFromRaster(SkImageFilter::Proxy*, |
74 const SkIRect& subset, | 74 const SkIRect& subset, |
75 const SkBitmap&); | 75 const SkBitmap&); |
76 static sk_sp<SkSpecialImage> MakeFromGpu(SkImageFilter::Proxy*, | 76 static sk_sp<SkSpecialImage> MakeFromGpu(SkImageFilter::Proxy*, |
77 const SkIRect& subset, | 77 const SkIRect& subset, |
78 uint32_t uniqueID, | 78 uint32_t uniqueID, |
79 GrTexture*, | 79 GrTexture*, |
80 SkAlphaType at = kPremul_SkAlphaTyp
e); | 80 SkAlphaType at = kPremul_SkAlphaTyp
e); |
81 static sk_sp<SkSpecialImage> MakeFromPixmap(SkImageFilter::Proxy*, | 81 static sk_sp<SkSpecialImage> MakeFromPixmap(SkImageFilter::Proxy*, |
82 const SkIRect& subset, | 82 const SkIRect& subset, |
83 const SkPixmap&, | 83 const SkPixmap&, |
84 RasterReleaseProc, | 84 RasterReleaseProc, |
85 ReleaseContext); | 85 ReleaseContext); |
86 | 86 |
87 /** | 87 /** |
88 * Create a new special surface with a backend that is compatible with this
special image. | 88 * Create a new special surface with a backend that is compatible with this
special image. |
89 */ | 89 */ |
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
157 const SkIRect fSubset; | 157 const SkIRect fSubset; |
158 const uint32_t fUniqueID; | 158 const uint32_t fUniqueID; |
159 | 159 |
160 // TODO: remove this ASAP (see skbug.com/4965) | 160 // TODO: remove this ASAP (see skbug.com/4965) |
161 SkImageFilter::Proxy* fProxy; | 161 SkImageFilter::Proxy* fProxy; |
162 | 162 |
163 typedef SkRefCnt INHERITED; | 163 typedef SkRefCnt INHERITED; |
164 }; | 164 }; |
165 | 165 |
166 #endif | 166 #endif |
167 | |
OLD | NEW |