Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(546)

Side by Side Diff: src/image/SkImage.cpp

Issue 2165803002: Remove unused MakeFromTextureCopy API (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « include/core/SkImage.h ('k') | src/image/SkImage_Gpu.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 398 matching lines...) Expand 10 before | Expand all | Expand 10 after
409 sk_sp<SkImage> SkImage::MakeFromDeferredTextureImageData(GrContext* context, con st void*, 409 sk_sp<SkImage> SkImage::MakeFromDeferredTextureImageData(GrContext* context, con st void*,
410 SkBudgeted) { 410 SkBudgeted) {
411 return nullptr; 411 return nullptr;
412 } 412 }
413 413
414 sk_sp<SkImage> SkImage::MakeFromAdoptedTexture(GrContext*, const GrBackendTextur eDesc&, 414 sk_sp<SkImage> SkImage::MakeFromAdoptedTexture(GrContext*, const GrBackendTextur eDesc&,
415 SkAlphaType) { 415 SkAlphaType) {
416 return nullptr; 416 return nullptr;
417 } 417 }
418 418
419 sk_sp<SkImage> SkImage::MakeFromTextureCopy(GrContext*, const GrBackendTextureDe sc&, SkAlphaType) {
420 return nullptr;
421 }
422
423 sk_sp<SkImage> SkImage::MakeFromYUVTexturesCopy(GrContext* ctx, SkYUVColorSpace space, 419 sk_sp<SkImage> SkImage::MakeFromYUVTexturesCopy(GrContext* ctx, SkYUVColorSpace space,
424 const GrBackendObject yuvTexture Handles[3], 420 const GrBackendObject yuvTexture Handles[3],
425 const SkISize yuvSizes[3], 421 const SkISize yuvSizes[3],
426 GrSurfaceOrigin origin) { 422 GrSurfaceOrigin origin) {
427 return nullptr; 423 return nullptr;
428 } 424 }
429 425
430 sk_sp<SkImage> SkImage::makeTextureImage(GrContext*) const { 426 sk_sp<SkImage> SkImage::makeTextureImage(GrContext*) const {
431 return nullptr; 427 return nullptr;
432 } 428 }
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
469 SkImage* SkImage::NewFromTexture(GrContext* ctx, const GrBackendTextureDesc& des c, SkAlphaType at, 465 SkImage* SkImage::NewFromTexture(GrContext* ctx, const GrBackendTextureDesc& des c, SkAlphaType at,
470 TextureReleaseProc proc, ReleaseContext release ctx) { 466 TextureReleaseProc proc, ReleaseContext release ctx) {
471 return MakeFromTexture(ctx, desc, at, proc, releasectx).release(); 467 return MakeFromTexture(ctx, desc, at, proc, releasectx).release();
472 } 468 }
473 469
474 SkImage* SkImage::NewFromAdoptedTexture(GrContext* ctx, const GrBackendTextureDe sc& desc, 470 SkImage* SkImage::NewFromAdoptedTexture(GrContext* ctx, const GrBackendTextureDe sc& desc,
475 SkAlphaType at) { 471 SkAlphaType at) {
476 return MakeFromAdoptedTexture(ctx, desc, at).release(); 472 return MakeFromAdoptedTexture(ctx, desc, at).release();
477 } 473 }
478 474
479 SkImage* SkImage::NewFromTextureCopy(GrContext* ctx, const GrBackendTextureDesc& desc,
480 SkAlphaType at) {
481 return MakeFromTextureCopy(ctx, desc, at).release();
482 }
483
484 SkImage* SkImage::NewFromYUVTexturesCopy(GrContext* ctx, SkYUVColorSpace space, 475 SkImage* SkImage::NewFromYUVTexturesCopy(GrContext* ctx, SkYUVColorSpace space,
485 const GrBackendObject yuvTextureHandles [3], 476 const GrBackendObject yuvTextureHandles [3],
486 const SkISize yuvSizes[3], 477 const SkISize yuvSizes[3],
487 GrSurfaceOrigin origin) { 478 GrSurfaceOrigin origin) {
488 return MakeFromYUVTexturesCopy(ctx, space, yuvTextureHandles, yuvSizes, orig in).release(); 479 return MakeFromYUVTexturesCopy(ctx, space, yuvTextureHandles, yuvSizes, orig in).release();
489 } 480 }
490 481
491 SkImage* SkImage::NewFromPicture(const SkPicture* picture, const SkISize& dimens ions, 482 SkImage* SkImage::NewFromPicture(const SkPicture* picture, const SkISize& dimens ions,
492 const SkMatrix* matrix, const SkPaint* paint) { 483 const SkMatrix* matrix, const SkPaint* paint) {
493 return MakeFromPicture(sk_ref_sp(const_cast<SkPicture*>(picture)), dimension s, 484 return MakeFromPicture(sk_ref_sp(const_cast<SkPicture*>(picture)), dimension s,
494 matrix, paint).release(); 485 matrix, paint).release();
495 } 486 }
496 487
497 SkImage* SkImage::NewTextureFromPixmap(GrContext* ctx, const SkPixmap& pmap, SkB udgeted budgeted) { 488 SkImage* SkImage::NewTextureFromPixmap(GrContext* ctx, const SkPixmap& pmap, SkB udgeted budgeted) {
498 return MakeTextureFromPixmap(ctx, pmap, budgeted).release(); 489 return MakeTextureFromPixmap(ctx, pmap, budgeted).release();
499 } 490 }
500 491
501 SkImage* SkImage::NewFromDeferredTextureImageData(GrContext* ctx, const void* da ta, 492 SkImage* SkImage::NewFromDeferredTextureImageData(GrContext* ctx, const void* da ta,
502 SkBudgeted budgeted) { 493 SkBudgeted budgeted) {
503 return MakeFromDeferredTextureImageData(ctx, data, budgeted).release(); 494 return MakeFromDeferredTextureImageData(ctx, data, budgeted).release();
504 } 495 }
505 #endif 496 #endif
506 497
507 sk_sp<SkImage> MakeTextureFromMipMap(GrContext*, const SkImageInfo&, const GrMip Level* texels, 498 sk_sp<SkImage> MakeTextureFromMipMap(GrContext*, const SkImageInfo&, const GrMip Level* texels,
508 int mipLevelCount, SkBudgeted) { 499 int mipLevelCount, SkBudgeted) {
509 return nullptr; 500 return nullptr;
510 } 501 }
OLDNEW
« no previous file with comments | « include/core/SkImage.h ('k') | src/image/SkImage_Gpu.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698