OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2012 Google Inc. | 2 * Copyright 2012 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 #include "SkBitmap.h" | 8 #include "SkBitmap.h" |
9 #include "SkCanvas.h" | 9 #include "SkCanvas.h" |
10 #include "SkImageGenerator.h" | 10 #include "SkImageGenerator.h" |
(...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
198 paint.setXfermodeMode(SkXfermode::kSrc_Mode); | 198 paint.setXfermodeMode(SkXfermode::kSrc_Mode); |
199 paint.setFilterQuality(quality); | 199 paint.setFilterQuality(quality); |
200 surface->getCanvas()->drawImage(this, 0, 0, &paint); | 200 surface->getCanvas()->drawImage(this, 0, 0, &paint); |
201 return surface->newImageSnapshot(); | 201 return surface->newImageSnapshot(); |
202 } | 202 } |
203 | 203 |
204 ////////////////////////////////////////////////////////////////////////////////
////// | 204 ////////////////////////////////////////////////////////////////////////////////
////// |
205 | 205 |
206 #if !SK_SUPPORT_GPU | 206 #if !SK_SUPPORT_GPU |
207 | 207 |
208 SkImage* SkImage::NewFromTexture(GrContext*, const GrBackendTextureDesc&, SkAlph
aType) { | 208 SkImage* SkImage::NewFromTexture(GrContext*, const GrBackendTextureDesc&, SkAlph
aType, |
| 209 TextureReleaseProc, ReleaseContext) { |
209 return NULL; | 210 return NULL; |
210 } | 211 } |
211 | 212 |
212 SkImage* SkImage::NewFromAdoptedTexture(GrContext*, const GrBackendTextureDesc&,
SkAlphaType) { | 213 SkImage* SkImage::NewFromAdoptedTexture(GrContext*, const GrBackendTextureDesc&,
SkAlphaType) { |
213 return NULL; | 214 return NULL; |
214 } | 215 } |
215 | 216 |
216 SkImage* SkImage::NewFromTextureCopy(GrContext*, const GrBackendTextureDesc&, Sk
AlphaType) { | 217 SkImage* SkImage::NewFromTextureCopy(GrContext*, const GrBackendTextureDesc&, Sk
AlphaType) { |
217 return NULL; | 218 return NULL; |
218 } | 219 } |
219 | 220 |
220 #endif | 221 #endif |
OLD | NEW |