aboutsummaryrefslogtreecommitdiffhomepage
path: root/include/gpu/GrTypes.h
diff options
context:
space:
mode:
authorGravatar Brian Salomon <bsalomon@google.com>2018-03-22 10:01:16 -0400
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2018-03-22 14:49:44 +0000
commit5fba7ad39a96d02c8a23cc20e47c5021b6a85baa (patch)
tree17840b99fbcec0957762a06f3952552466e74ddc /include/gpu/GrTypes.h
parent9eded2c211773133b86a964b357404ae6b021d7d (diff)
Support GL_RGB textures and render targets.
Bug= skia:7533 Change-Id: Iba30e90dbf2574368b773bb5cf2ebd5219559717 Reviewed-on: https://skia-review.googlesource.com/108188 Commit-Queue: Brian Salomon <bsalomon@google.com> Reviewed-by: Robert Phillips <robertphillips@google.com>
Diffstat (limited to 'include/gpu/GrTypes.h')
-rw-r--r--include/gpu/GrTypes.h41
1 files changed, 6 insertions, 35 deletions
diff --git a/include/gpu/GrTypes.h b/include/gpu/GrTypes.h
index 3fec742907..979014cca4 100644
--- a/include/gpu/GrTypes.h
+++ b/include/gpu/GrTypes.h
@@ -286,58 +286,29 @@ static inline int GrMaskFormatBytesPerPixel(GrMaskFormat format) {
}
/**
- * Pixel configurations.
+ * Pixel configurations. This type conflates texture formats, CPU pixel formats, and
+ * premultipliedness. We are moving away from it towards SkColorType and backend API (GL, Vulkan)
+ * texture formats in the pulbic API. Right now this mostly refers to texture formats as we're
+ * migrating.
*/
enum GrPixelConfig {
kUnknown_GrPixelConfig,
kAlpha_8_GrPixelConfig,
kGray_8_GrPixelConfig,
kRGB_565_GrPixelConfig,
- /**
- * Premultiplied
- */
kRGBA_4444_GrPixelConfig,
- /**
- * Premultiplied. Byte order is r,g,b,a.
- */
kRGBA_8888_GrPixelConfig,
- /**
- * Premultiplied. Byte order is b,g,r,a.
- */
+ kRGB_888_GrPixelConfig,
kBGRA_8888_GrPixelConfig,
- /**
- * Premultiplied and sRGB. Byte order is r,g,b,a.
- */
kSRGBA_8888_GrPixelConfig,
- /**
- * Premultiplied and sRGB. Byte order is b,g,r,a.
- */
kSBGRA_8888_GrPixelConfig,
-
- /**
- * Premultiplied.
- */
kRGBA_1010102_GrPixelConfig,
-
- /**
- * Byte order is r, g, b, a. This color format is 32 bits per channel
- */
kRGBA_float_GrPixelConfig,
- /**
- * Byte order is r, g. This color format is 32 bits per channel
- */
kRG_float_GrPixelConfig,
-
- /**
- * This color format is a single 16 bit float channel
- */
kAlpha_half_GrPixelConfig,
-
- /**
- * Byte order is r, g, b, a. This color format is 16 bits per channel
- */
kRGBA_half_GrPixelConfig,
+ /** For internal usage. */
kPrivateConfig1_GrPixelConfig,
kPrivateConfig2_GrPixelConfig,
kPrivateConfig3_GrPixelConfig,