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

Side by Side Diff: include/core/SkImage.h

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: Fixing Windows build. 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
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 #ifndef SkImage_DEFINED 8 #ifndef SkImage_DEFINED
9 #define SkImage_DEFINED 9 #define SkImage_DEFINED
10 10
(...skipping 361 matching lines...) Expand 10 before | Expand all | Expand 10 after
372 * to create deferred texture data for this image (or zero if this is an ina ppropriate 372 * to create deferred texture data for this image (or zero if this is an ina ppropriate
373 * candidate). The buffer allocated by the client should be 8 byte aligned. 373 * candidate). The buffer allocated by the client should be 8 byte aligned.
374 * 374 *
375 * When buffer is not null this fills in the deferred texture data for this image in the 375 * When buffer is not null this fills in the deferred texture data for this image in the
376 * provided buffer (assuming this is an appropriate candidate image and the buffer is 376 * provided buffer (assuming this is an appropriate candidate image and the buffer is
377 * appropriately aligned). Upon success the size written is returned, otherw ise 0. 377 * appropriately aligned). Upon success the size written is returned, otherw ise 0.
378 */ 378 */
379 size_t getDeferredTextureImageData(const GrContextThreadSafeProxy&, 379 size_t getDeferredTextureImageData(const GrContextThreadSafeProxy&,
380 const DeferredTextureImageUsageParams[], 380 const DeferredTextureImageUsageParams[],
381 int paramCnt, 381 int paramCnt,
382 void* buffer) const; 382 void* buffer,
383 SkSourceGammaTreatment treatment =
bsalomon 2016/06/13 14:11:39 Should this be here or part of DeferredTextureImag
cblume 2016/06/13 18:17:16 Sounds good. I'll wait to hear from brianosman@. F
Brian Osman 2016/06/13 18:22:09 Yes, kIgnore will match existing (legacy) behavior
384 SkSourceGammaTreatment::kRespect) const;
383 385
384 /** 386 /**
385 * Returns a texture-backed image from data produced in SkImage::getDeferred TextureImageData. 387 * Returns a texture-backed image from data produced in SkImage::getDeferred TextureImageData.
386 * The context must be the context that provided the proxy passed to 388 * The context must be the context that provided the proxy passed to
387 * getDeferredTextureImageData. 389 * getDeferredTextureImageData.
388 */ 390 */
389 static sk_sp<SkImage> MakeFromDeferredTextureImageData(GrContext*, const voi d*, SkBudgeted); 391 static sk_sp<SkImage> MakeFromDeferredTextureImageData(GrContext*, const voi d*, SkBudgeted);
390 392
391 // Helper functions to convert to SkBitmap 393 // Helper functions to convert to SkBitmap
392 394
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
457 SkBudgeted); 459 SkBudgeted);
458 460
459 const int fWidth; 461 const int fWidth;
460 const int fHeight; 462 const int fHeight;
461 const uint32_t fUniqueID; 463 const uint32_t fUniqueID;
462 464
463 typedef SkRefCnt INHERITED; 465 typedef SkRefCnt INHERITED;
464 }; 466 };
465 467
466 #endif 468 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698