diff options
author | reed <reed@google.com> | 2016-06-10 11:41:47 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-06-10 11:41:47 -0700 |
commit | 6644d9353f3f0c09914385fd762e073f98d54205 (patch) | |
tree | 617f3b1d2ca2b06cc34decfb44c4c975ba903ca5 /src/core/SkBitmapCache.h | |
parent | 7049396b65660907af5292d899053280430d929a (diff) |
respect srgb gamma when building mips
Proposed policy:
- If the target is *legacy* (e.g. L32/PMColor) ignore gamma
- If the target is S32/F16 respect gamma
BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2029373004
Review-Url: https://codereview.chromium.org/2029373004
Diffstat (limited to 'src/core/SkBitmapCache.h')
-rw-r--r-- | src/core/SkBitmapCache.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/core/SkBitmapCache.h b/src/core/SkBitmapCache.h index 9371e77ca9..76bcef06cf 100644 --- a/src/core/SkBitmapCache.h +++ b/src/core/SkBitmapCache.h @@ -8,12 +8,11 @@ #ifndef SkBitmapCache_DEFINED #define SkBitmapCache_DEFINED -#include "SkScalar.h" #include "SkBitmap.h" +#include "SkMipMap.h" class SkImage; class SkResourceCache; -class SkMipMap; uint64_t SkMakeResourceCacheSharedIDForBitmap(uint32_t bitmapGenID); @@ -73,9 +72,10 @@ public: class SkMipMapCache { public: - static const SkMipMap* FindAndRef(const SkBitmapCacheDesc&, + static const SkMipMap* FindAndRef(const SkBitmapCacheDesc&, SkSourceGammaTreatment, SkResourceCache* localCache = nullptr); - static const SkMipMap* AddAndRef(const SkBitmap& src, SkResourceCache* localCache = nullptr); + static const SkMipMap* AddAndRef(const SkBitmap& src, SkSourceGammaTreatment, + SkResourceCache* localCache = nullptr); }; #endif |