diff options
author | 2015-10-20 07:58:01 -0700 | |
---|---|---|
committer | 2015-10-20 07:58:01 -0700 | |
commit | 045802dbb7202b52f5fd2758d725f39c156a6165 (patch) | |
tree | 49cdef8c087b3c674928e2428a4761fb15f777b4 /include/gpu/SkGr.h | |
parent | 4beb5c117b355599e2fd26b8b3d19de99512cb69 (diff) |
Rewrite GrTextureMaker to disentangle bitmap case from base class and give GPU object a say in what copying needs to be done.
Committed: https://skia.googlesource.com/skia/+/fcffaf22d697f06f903c3193308f9dc54a959f79
Committed: https://skia.googlesource.com/skia/+/1a197ea31e0aac7ea312e9a6c0d9f5df626b0350
Review URL: https://codereview.chromium.org/1409163002
Diffstat (limited to 'include/gpu/SkGr.h')
-rw-r--r-- | include/gpu/SkGr.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/include/gpu/SkGr.h b/include/gpu/SkGr.h index 591d3d88a4..17625c4e4e 100644 --- a/include/gpu/SkGr.h +++ b/include/gpu/SkGr.h @@ -65,9 +65,11 @@ static inline GrColor SkPMColorToGrColor(SkPMColor c) { } //////////////////////////////////////////////////////////////////////////////// - +/** Returns a texture representing the bitmap that is compatible with the GrTextureParams. The + texture is inserted into the cache (unless the bitmap is marked volatile) and can be + retrieved again via this function. */ GrTexture* GrRefCachedBitmapTexture(GrContext*, const SkBitmap&, const GrTextureParams&); - + // TODO: Move SkImageInfo2GrPixelConfig to SkGrPriv.h (requires cleanup to SkWindow its subclasses). GrPixelConfig SkImageInfo2GrPixelConfig(SkColorType, SkAlphaType, SkColorProfileType); |