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

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

Issue 2115023002: Store mipmap levels in deferred texture image (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Updating call sites. Created 4 years, 4 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 377 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
398 sk_sp<SkImage> SkImage::MakeFromTexture(GrContext*, const GrBackendTextureDesc&, SkAlphaType, 403 sk_sp<SkImage> SkImage::MakeFromTexture(GrContext*, const GrBackendTextureDesc&, SkAlphaType,
399 sk_sp<SkColorSpace>, TextureReleaseProc, ReleaseContext) { 404 sk_sp<SkColorSpace>, TextureReleaseProc, ReleaseContext) {
400 return nullptr; 405 return nullptr;
401 } 406 }
402 407
403 size_t SkImage::getDeferredTextureImageData(const GrContextThreadSafeProxy&, 408 size_t SkImage::getDeferredTextureImageData(const GrContextThreadSafeProxy&,
404 const DeferredTextureImageUsageParam s[], 409 const DeferredTextureImageUsageParam s[],
405 int paramCnt, void* buffer) const { 410 int paramCnt, void* buffer,
411 SkSourceGammaTreatment treatment) co nst {
406 return 0; 412 return 0;
407 } 413 }
408 414
409 sk_sp<SkImage> SkImage::MakeFromDeferredTextureImageData(GrContext* context, con st void*, 415 sk_sp<SkImage> SkImage::MakeFromDeferredTextureImageData(GrContext* context, con st void*,
410 SkBudgeted) { 416 SkBudgeted) {
411 return nullptr; 417 return nullptr;
412 } 418 }
413 419
414 sk_sp<SkImage> SkImage::MakeFromAdoptedTexture(GrContext*, const GrBackendTextur eDesc&, 420 sk_sp<SkImage> SkImage::MakeFromAdoptedTexture(GrContext*, const GrBackendTextur eDesc&,
415 SkAlphaType, sk_sp<SkColorSpace>) { 421 SkAlphaType, sk_sp<SkColorSpace>) {
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
493 SkImage* SkImage::NewFromDeferredTextureImageData(GrContext* ctx, const void* da ta, 499 SkImage* SkImage::NewFromDeferredTextureImageData(GrContext* ctx, const void* da ta,
494 SkBudgeted budgeted) { 500 SkBudgeted budgeted) {
495 return MakeFromDeferredTextureImageData(ctx, data, budgeted).release(); 501 return MakeFromDeferredTextureImageData(ctx, data, budgeted).release();
496 } 502 }
497 #endif 503 #endif
498 504
499 sk_sp<SkImage> MakeTextureFromMipMap(GrContext*, const SkImageInfo&, const GrMip Level* texels, 505 sk_sp<SkImage> MakeTextureFromMipMap(GrContext*, const SkImageInfo&, const GrMip Level* texels,
500 int mipLevelCount, SkBudgeted) { 506 int mipLevelCount, SkBudgeted) {
501 return nullptr; 507 return nullptr;
502 } 508 }
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