diff options
author | bsalomon <bsalomon@google.com> | 2015-10-16 13:35:10 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-10-16 13:35:10 -0700 |
commit | fcffaf22d697f06f903c3193308f9dc54a959f79 (patch) | |
tree | 38408d319b281941642893e3642d2b947a086cf6 /src/image/SkImage_Raster.cpp | |
parent | 466c2c48b9f78b974becbc6834970b6f6cdfa5f5 (diff) |
Rewrite GrTextureMaker to disentangle bitmap case from base class and give GPU object a say in what copying needs to be done.
Review URL: https://codereview.chromium.org/1409163002
Diffstat (limited to 'src/image/SkImage_Raster.cpp')
-rw-r--r-- | src/image/SkImage_Raster.cpp | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/src/image/SkImage_Raster.cpp b/src/image/SkImage_Raster.cpp index b78818db6b..9c90ba908b 100644 --- a/src/image/SkImage_Raster.cpp +++ b/src/image/SkImage_Raster.cpp @@ -173,20 +173,6 @@ GrTexture* SkImage_Raster::asTextureRef(GrContext* ctx, const GrTextureParams& p return nullptr; } - // textures (at least the texture-key) only support 16bit dimensions, so abort early - // if we're too big. - if (fBitmap.width() > 0xFFFF || fBitmap.height() > 0xFFFF) { - return nullptr; - } - - GrUniqueKey key; - GrMakeKeyFromImageID(&key, fBitmap.getGenerationID(), - SkIRect::MakeWH(fBitmap.width(), fBitmap.height()), - *ctx->caps(), params); - - if (GrTexture* tex = ctx->textureProvider()->findAndRefTextureByUniqueKey(key)) { - return tex; - } return GrRefCachedBitmapTexture(ctx, fBitmap, params); #endif |