aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/SkImageCacherator.h
diff options
context:
space:
mode:
authorGravatar Brian Osman <brianosman@google.com>2017-03-31 17:02:41 -0400
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2017-04-03 14:02:19 +0000
commit84c009f69216bc9f741294f24d60434383385f4c (patch)
tree6c4b76d48e4f91192ac36bd7bd2a5c79b481a159 /src/core/SkImageCacherator.h
parentb7bf09ccac26aac57f0ea36ceb36ace848999d48 (diff)
Remove kAsIs_CachedFormat
This was confusing and unnecessary. Added an explicit sBGR format to handle one case. Now the CF always fully describes the color type and transfer function (or it's legacy). Bug: skia: Change-Id: I8f792e8aa18cd2391aa541a9368e345d92bba828 Reviewed-on: https://skia-review.googlesource.com/11013 Reviewed-by: Matt Sarett <msarett@google.com> Commit-Queue: Brian Osman <brianosman@google.com>
Diffstat (limited to 'src/core/SkImageCacherator.h')
-rw-r--r--src/core/SkImageCacherator.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/SkImageCacherator.h b/src/core/SkImageCacherator.h
index e179236748..e75aab7a93 100644
--- a/src/core/SkImageCacherator.h
+++ b/src/core/SkImageCacherator.h
@@ -35,9 +35,9 @@ public:
enum CachedFormat {
kLegacy_CachedFormat, // The format from the generator, with any color space stripped out
- kAsIs_CachedFormat, // The format from the generator, with no modification
kLinearF16_CachedFormat, // Half float RGBA with linear gamma
kSRGB8888_CachedFormat, // sRGB bytes
+ kSBGR8888_CachedFormat, // sRGB bytes, in BGR order
kNumCachedFormats,
};