diff options
author | 2017-05-02 11:32:42 -0400 | |
---|---|---|
committer | 2017-05-02 16:07:15 +0000 | |
commit | 9b848d5749c5e34b56f927a3a3374c8ebafbd9db (patch) | |
tree | a7498e9c1c35c467e95a8c50ed70d8bbcaacd976 /src/gpu | |
parent | a18d2db2fc2f708c4a71315ff21d822976bcabbf (diff) |
Add support for row-by-row jpeg encoding
Bug: 713862
Change-Id: I787b7c49662a00b89ae0ef35845dfbd6be3e6fb1
Reviewed-on: https://skia-review.googlesource.com/14641
Commit-Queue: Matt Sarett <msarett@google.com>
Reviewed-by: Leon Scroggins <scroggo@google.com>
Diffstat (limited to 'src/gpu')
-rw-r--r-- | src/gpu/SkGr.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gpu/SkGr.cpp b/src/gpu/SkGr.cpp index 5401a10775..895fdec044 100644 --- a/src/gpu/SkGr.cpp +++ b/src/gpu/SkGr.cpp @@ -176,7 +176,7 @@ sk_sp<GrTextureProxy> GrUploadPixmapToTextureProxyNoCheck(GrResourceProvider* re sk_sp<GrTextureProxy> GrUploadPixmapToTextureProxy(GrResourceProvider* resourceProvider, const SkPixmap& pixmap, SkBudgeted budgeted) { - if (!SkImageInfoIsValid(pixmap.info())) { + if (!SkImageInfoIsValidRenderingCS(pixmap.info())) { return nullptr; } @@ -205,7 +205,7 @@ sk_sp<GrTextureProxy> GrGenerateMipMapsAndUploadToTextureProxy(GrContext* ctx, ? SkDestinationSurfaceColorMode::kGammaAndColorSpaceAware : SkDestinationSurfaceColorMode::kLegacy; - if (!SkImageInfoIsValid(bitmap.info())) { + if (!SkImageInfoIsValidRenderingCS(bitmap.info())) { return nullptr; } @@ -252,7 +252,7 @@ sk_sp<GrTextureProxy> GrUploadMipMapToTextureProxy(GrContext* ctx, const SkImage const GrMipLevel* texels, int mipLevelCount, SkDestinationSurfaceColorMode colorMode) { - if (!SkImageInfoIsValid(info)) { + if (!SkImageInfoIsValidRenderingCS(info)) { return nullptr; } |