diff options
author | 2018-05-15 16:06:12 -0400 | |
---|---|---|
committer | 2018-05-15 22:04:23 +0000 | |
commit | cc45cc7c17a8317fba6adaf4a8ea5ebf047afd21 (patch) | |
tree | c1dd007b286d722cf837c9d17d5f6a45e79bddd3 /include | |
parent | 6a0e54e47931a1d963fc1bbeed203752ae3afde4 (diff) |
remove typedef Info
typedef SkImageInfo Info saves a little typing at the cost of
obfuscating the parameter type. It's only used in a couple of
places so remove it.
The documentation catalog has gotten a bit stale, so update
that as well.
Docs-Preview: https://skia.org/?cl=128400
Bug: skia:6898
Change-Id: I621743a2b2d9a78d5f62742501eebf5f4327efa0
Reviewed-on: https://skia-review.googlesource.com/128400
Commit-Queue: Cary Clark <caryclark@skia.org>
Commit-Queue: Brian Salomon <bsalomon@google.com>
Auto-Submit: Cary Clark <caryclark@skia.org>
Reviewed-by: Brian Salomon <bsalomon@google.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/core/SkImage.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/core/SkImage.h b/include/core/SkImage.h index 6d3ae42fa4..afcbb89a5b 100644 --- a/include/core/SkImage.h +++ b/include/core/SkImage.h @@ -51,7 +51,6 @@ class GrTexture; */ class SK_API SkImage : public SkRefCnt { public: - typedef SkImageInfo Info; typedef void* ReleaseContext; /** Creates SkImage from SkPixmap and copy of pixels. Since pixels are copied, SkPixmap @@ -83,7 +82,8 @@ public: @param rowBytes size of pixel row or larger @return SkImage sharing pixels, or nullptr */ - static sk_sp<SkImage> MakeRasterData(const Info& info, sk_sp<SkData> pixels, size_t rowBytes); + static sk_sp<SkImage> MakeRasterData(const SkImageInfo& info, sk_sp<SkData> pixels, + size_t rowBytes); typedef void (*RasterReleaseProc)(const void* pixels, ReleaseContext); |