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