| 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 "SkBitmapCache.h" | 9 #include "SkBitmapCache.h" |
| 10 #include "SkCanvas.h" | 10 #include "SkCanvas.h" |
| (...skipping 324 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 335 } | 335 } |
| 336 | 336 |
| 337 bool SkImage::isLazyGenerated() const { | 337 bool SkImage::isLazyGenerated() const { |
| 338 return as_IB(this)->onIsLazyGenerated(); | 338 return as_IB(this)->onIsLazyGenerated(); |
| 339 } | 339 } |
| 340 | 340 |
| 341 ////////////////////////////////////////////////////////////////////////////////
////// | 341 ////////////////////////////////////////////////////////////////////////////////
////// |
| 342 | 342 |
| 343 #if !SK_SUPPORT_GPU | 343 #if !SK_SUPPORT_GPU |
| 344 | 344 |
| 345 SkImage* SkImage::NewTextureFromPixmap(GrContext*, const SkPixmap&, SkBudgeted b
udgeted) { | |
| 346 return nullptr; | |
| 347 } | |
| 348 | |
| 349 SkImage* SkImage::NewFromTexture(GrContext*, const GrBackendTextureDesc&, SkAlph
aType, | 345 SkImage* SkImage::NewFromTexture(GrContext*, const GrBackendTextureDesc&, SkAlph
aType, |
| 350 TextureReleaseProc, ReleaseContext) { | 346 TextureReleaseProc, ReleaseContext) { |
| 351 return nullptr; | 347 return nullptr; |
| 352 } | 348 } |
| 353 | 349 |
| 354 SkImage* SkImage::NewFromAdoptedTexture(GrContext*, const GrBackendTextureDesc&,
SkAlphaType) { | 350 SkImage* SkImage::NewFromAdoptedTexture(GrContext*, const GrBackendTextureDesc&,
SkAlphaType) { |
| 355 return nullptr; | 351 return nullptr; |
| 356 } | 352 } |
| 357 | 353 |
| 358 SkImage* SkImage::NewFromTextureCopy(GrContext*, const GrBackendTextureDesc&, Sk
AlphaType) { | 354 SkImage* SkImage::NewFromTextureCopy(GrContext*, const GrBackendTextureDesc&, Sk
AlphaType) { |
| 359 return nullptr; | 355 return nullptr; |
| 360 } | 356 } |
| 361 | 357 |
| 362 SkImage* SkImage::newTextureImage(GrContext*) const { | 358 SkImage* SkImage::newTextureImage(GrContext*) const { |
| 363 return nullptr; | 359 return nullptr; |
| 364 } | 360 } |
| 365 | 361 |
| 366 #endif | 362 #endif |
| OLD | NEW |