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

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

Issue 2242883004: Store mipmap levels in deferred texture image (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Fixing opening brace location. Created 4 years, 3 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 364 matching lines...) Expand 10 before | Expand all | Expand 10 after
375 } 375 }
376 376
377 //////////////////////////////////////////////////////////////////////////////// ////// 377 //////////////////////////////////////////////////////////////////////////////// //////
378 378
379 #if !SK_SUPPORT_GPU 379 #if !SK_SUPPORT_GPU
380 380
381 sk_sp<SkImage> SkImage::MakeTextureFromPixmap(GrContext*, const SkPixmap&, SkBud geted budgeted) { 381 sk_sp<SkImage> SkImage::MakeTextureFromPixmap(GrContext*, const SkPixmap&, SkBud geted budgeted) {
382 return nullptr; 382 return nullptr;
383 } 383 }
384 384
385 sk_sp<SkImage> MakeTextureFromMipMap(GrContext*, const SkImageInfo&, const GrMip Level* texels,
386 int mipLevelCount, SkBudgeted, SkSourceGamm aTreatment) {
387 return nullptr;
388 }
389
385 sk_sp<SkImage> SkImage::MakeFromTexture(GrContext*, const GrBackendTextureDesc&, SkAlphaType, 390 sk_sp<SkImage> SkImage::MakeFromTexture(GrContext*, const GrBackendTextureDesc&, SkAlphaType,
386 sk_sp<SkColorSpace>, TextureReleaseProc, ReleaseContext) { 391 sk_sp<SkColorSpace>, TextureReleaseProc, ReleaseContext) {
387 return nullptr; 392 return nullptr;
388 } 393 }
389 394
390 size_t SkImage::getDeferredTextureImageData(const GrContextThreadSafeProxy&, 395 size_t SkImage::getDeferredTextureImageData(const GrContextThreadSafeProxy&,
391 const DeferredTextureImageUsageParam s[], 396 const DeferredTextureImageUsageParam s[],
392 int paramCnt, void* buffer) const { 397 int paramCnt, void* buffer,
398 SkSourceGammaTreatment treatment) co nst {
393 return 0; 399 return 0;
394 } 400 }
395 401
396 sk_sp<SkImage> SkImage::MakeFromDeferredTextureImageData(GrContext* context, con st void*, 402 sk_sp<SkImage> SkImage::MakeFromDeferredTextureImageData(GrContext* context, con st void*,
397 SkBudgeted) { 403 SkBudgeted) {
398 return nullptr; 404 return nullptr;
399 } 405 }
400 406
401 sk_sp<SkImage> SkImage::MakeFromAdoptedTexture(GrContext*, const GrBackendTextur eDesc&, 407 sk_sp<SkImage> SkImage::MakeFromAdoptedTexture(GrContext*, const GrBackendTextur eDesc&,
402 SkAlphaType, sk_sp<SkColorSpace>) { 408 SkAlphaType, sk_sp<SkColorSpace>) {
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
505 SkASSERT(image); 511 SkASSERT(image);
506 SkASSERT(ctx); 512 SkASSERT(ctx);
507 as_IB(image)->onPinAsTexture(ctx); 513 as_IB(image)->onPinAsTexture(ctx);
508 } 514 }
509 515
510 void SkImage_unpinAsTexture(const SkImage* image, GrContext* ctx) { 516 void SkImage_unpinAsTexture(const SkImage* image, GrContext* ctx) {
511 SkASSERT(image); 517 SkASSERT(image);
512 SkASSERT(ctx); 518 SkASSERT(ctx);
513 as_IB(image)->onUnpinAsTexture(ctx); 519 as_IB(image)->onUnpinAsTexture(ctx);
514 } 520 }
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