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

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

Issue 2083393002: Revert of Store mipmap levels in deferred texture image (Closed) Base URL: https://skia.googlesource.com/skia.git@pipe-mipmap-levels-to-creation
Patch Set: 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
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
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 }
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