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 377 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
388 } | 388 } |
389 | 389 |
390 ////////////////////////////////////////////////////////////////////////////////
////// | 390 ////////////////////////////////////////////////////////////////////////////////
////// |
391 | 391 |
392 #if !SK_SUPPORT_GPU | 392 #if !SK_SUPPORT_GPU |
393 | 393 |
394 sk_sp<SkImage> SkImage::MakeTextureFromPixmap(GrContext*, const SkPixmap&, SkBud
geted budgeted) { | 394 sk_sp<SkImage> SkImage::MakeTextureFromPixmap(GrContext*, const SkPixmap&, SkBud
geted budgeted) { |
395 return nullptr; | 395 return nullptr; |
396 } | 396 } |
397 | 397 |
398 sk_sp<SkImage> MakeTextureFromMipMap(GrContext*, const SkImageInfo&, const GrMip
Level* texels, | |
399 int mipLevelCount, SkBudgeted, SkSourceGamm
aTreatment) { | |
400 return nullptr; | |
401 } | |
402 | |
403 sk_sp<SkImage> SkImage::MakeFromTexture(GrContext*, const GrBackendTextureDesc&,
SkAlphaType, | 398 sk_sp<SkImage> SkImage::MakeFromTexture(GrContext*, const GrBackendTextureDesc&,
SkAlphaType, |
404 TextureReleaseProc, ReleaseContext) { | 399 TextureReleaseProc, ReleaseContext) { |
405 return nullptr; | 400 return nullptr; |
406 } | 401 } |
407 | 402 |
408 size_t SkImage::getDeferredTextureImageData(const GrContextThreadSafeProxy&, | 403 size_t SkImage::getDeferredTextureImageData(const GrContextThreadSafeProxy&, |
409 const DeferredTextureImageUsageParam
s[], | 404 const DeferredTextureImageUsageParam
s[], |
410 int paramCnt, void* buffer, | 405 int paramCnt, void* buffer) const { |
411 SkSourceGammaTreatment treatment) co
nst { | |
412 return 0; | 406 return 0; |
413 } | 407 } |
414 | 408 |
415 sk_sp<SkImage> SkImage::MakeFromDeferredTextureImageData(GrContext* context, con
st void*, | 409 sk_sp<SkImage> SkImage::MakeFromDeferredTextureImageData(GrContext* context, con
st void*, |
416 SkBudgeted) { | 410 SkBudgeted) { |
417 return nullptr; | 411 return nullptr; |
418 } | 412 } |
419 | 413 |
420 sk_sp<SkImage> SkImage::MakeFromAdoptedTexture(GrContext*, const GrBackendTextur
eDesc&, | 414 sk_sp<SkImage> SkImage::MakeFromAdoptedTexture(GrContext*, const GrBackendTextur
eDesc&, |
421 SkAlphaType) { | 415 SkAlphaType) { |
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
503 SkImage* SkImage::NewFromDeferredTextureImageData(GrContext* ctx, const void* da
ta, | 497 SkImage* SkImage::NewFromDeferredTextureImageData(GrContext* ctx, const void* da
ta, |
504 SkBudgeted budgeted) { | 498 SkBudgeted budgeted) { |
505 return MakeFromDeferredTextureImageData(ctx, data, budgeted).release(); | 499 return MakeFromDeferredTextureImageData(ctx, data, budgeted).release(); |
506 } | 500 } |
507 #endif | 501 #endif |
508 | 502 |
509 sk_sp<SkImage> MakeTextureFromMipMap(GrContext*, const SkImageInfo&, const GrMip
Level* texels, | 503 sk_sp<SkImage> MakeTextureFromMipMap(GrContext*, const SkImageInfo&, const GrMip
Level* texels, |
510 int mipLevelCount, SkBudgeted) { | 504 int mipLevelCount, SkBudgeted) { |
511 return nullptr; | 505 return nullptr; |
512 } | 506 } |
OLD | NEW |