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

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

Issue 2034933003: Store mipmap levels in deferred texture image (Closed) Base URL: https://skia.googlesource.com/skia.git@pipe-mipmap-levels-to-creation
Patch Set: Using scaled size. Created 4 years, 6 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 TextureReleaseProc, ReleaseContext) { 404 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) { 421 SkAlphaType) {
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
497 SkImage* SkImage::NewFromDeferredTextureImageData(GrContext* ctx, const void* da ta, 503 SkImage* SkImage::NewFromDeferredTextureImageData(GrContext* ctx, const void* da ta,
498 SkBudgeted budgeted) { 504 SkBudgeted budgeted) {
499 return MakeFromDeferredTextureImageData(ctx, data, budgeted).release(); 505 return MakeFromDeferredTextureImageData(ctx, data, budgeted).release();
500 } 506 }
501 #endif 507 #endif
502 508
503 sk_sp<SkImage> MakeTextureFromMipMap(GrContext*, const SkImageInfo&, const GrMip Level* texels, 509 sk_sp<SkImage> MakeTextureFromMipMap(GrContext*, const SkImageInfo&, const GrMip Level* texels,
504 int mipLevelCount, SkBudgeted) { 510 int mipLevelCount, SkBudgeted) {
505 return nullptr; 511 return nullptr;
506 } 512 }
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