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 364 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
375 } | 375 } |
376 | 376 |
377 ////////////////////////////////////////////////////////////////////////////////
////// | 377 ////////////////////////////////////////////////////////////////////////////////
////// |
378 | 378 |
379 #if !SK_SUPPORT_GPU | 379 #if !SK_SUPPORT_GPU |
380 | 380 |
381 sk_sp<SkImage> SkImage::MakeTextureFromPixmap(GrContext*, const SkPixmap&, SkBud
geted budgeted) { | 381 sk_sp<SkImage> SkImage::MakeTextureFromPixmap(GrContext*, const SkPixmap&, SkBud
geted budgeted) { |
382 return nullptr; | 382 return nullptr; |
383 } | 383 } |
384 | 384 |
| 385 sk_sp<SkImage> MakeTextureFromMipMap(GrContext*, const SkImageInfo&, const GrMip
Level* texels, |
| 386 int mipLevelCount, SkBudgeted, SkSourceGamm
aTreatment) { |
| 387 return nullptr; |
| 388 } |
| 389 |
385 sk_sp<SkImage> SkImage::MakeFromTexture(GrContext*, const GrBackendTextureDesc&,
SkAlphaType, | 390 sk_sp<SkImage> SkImage::MakeFromTexture(GrContext*, const GrBackendTextureDesc&,
SkAlphaType, |
386 sk_sp<SkColorSpace>, TextureReleaseProc,
ReleaseContext) { | 391 sk_sp<SkColorSpace>, TextureReleaseProc,
ReleaseContext) { |
387 return nullptr; | 392 return nullptr; |
388 } | 393 } |
389 | 394 |
390 size_t SkImage::getDeferredTextureImageData(const GrContextThreadSafeProxy&, | 395 size_t SkImage::getDeferredTextureImageData(const GrContextThreadSafeProxy&, |
391 const DeferredTextureImageUsageParam
s[], | 396 const DeferredTextureImageUsageParam
s[], |
392 int paramCnt, void* buffer) const { | 397 int paramCnt, void* buffer, |
| 398 SkSourceGammaTreatment treatment) co
nst { |
393 return 0; | 399 return 0; |
394 } | 400 } |
395 | 401 |
396 sk_sp<SkImage> SkImage::MakeFromDeferredTextureImageData(GrContext* context, con
st void*, | 402 sk_sp<SkImage> SkImage::MakeFromDeferredTextureImageData(GrContext* context, con
st void*, |
397 SkBudgeted) { | 403 SkBudgeted) { |
398 return nullptr; | 404 return nullptr; |
399 } | 405 } |
400 | 406 |
401 sk_sp<SkImage> SkImage::MakeFromAdoptedTexture(GrContext*, const GrBackendTextur
eDesc&, | 407 sk_sp<SkImage> SkImage::MakeFromAdoptedTexture(GrContext*, const GrBackendTextur
eDesc&, |
402 SkAlphaType, sk_sp<SkColorSpace>)
{ | 408 SkAlphaType, sk_sp<SkColorSpace>)
{ |
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
505 SkASSERT(image); | 511 SkASSERT(image); |
506 SkASSERT(ctx); | 512 SkASSERT(ctx); |
507 as_IB(image)->onPinAsTexture(ctx); | 513 as_IB(image)->onPinAsTexture(ctx); |
508 } | 514 } |
509 | 515 |
510 void SkImage_unpinAsTexture(const SkImage* image, GrContext* ctx) { | 516 void SkImage_unpinAsTexture(const SkImage* image, GrContext* ctx) { |
511 SkASSERT(image); | 517 SkASSERT(image); |
512 SkASSERT(ctx); | 518 SkASSERT(ctx); |
513 as_IB(image)->onUnpinAsTexture(ctx); | 519 as_IB(image)->onUnpinAsTexture(ctx); |
514 } | 520 } |
OLD | NEW |