diff options
author | 2017-05-02 16:04:56 -0400 | |
---|---|---|
committer | 2017-05-02 20:40:10 +0000 | |
commit | 26b44df2333d5e8cec8aef11ab598d63b4ee05c7 (patch) | |
tree | ee461ac8587fef7b45d15b33166418a04a429d18 /src/gpu | |
parent | f567ca0bb86c24107864e4ea7f043913ca95d1ca (diff) |
Add support for row-by-row jpeg encoding
Reland of:
https://skia-review.googlesource.com/c/14641/
Bug: 713862
Change-Id: I9dca5ede4ebf569c5f80edcfb23a506b6cfa935e
Reviewed-on: https://skia-review.googlesource.com/15144
Reviewed-by: Leon Scroggins <scroggo@google.com>
Commit-Queue: Matt Sarett <msarett@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; } |