skia2/example
brianosman a635936588 sRGB support in Ganesh. Several pieces:
sRGB support now also requires GL_EXT_texture_sRGB_decode, which allows
us to disable sRGB -> Linear conversion when reading textures. This gives
us an easy way to support "legacy" L32 mode. We disable decoding based on
the pixel config of the render target. Textures can override that behavior
(specifically for format-conversion draws where we want that behavior).

Added sBGRA pixel config, which is not-really-a-format. It's just sRGBA
internally, and the external format is BGR order, so TexImage calls will
swizzle correctly. This lets us interact with sRGB raster surfaces on BGR
platforms.

Devices without sRGB support behave like they always have: conversion from
color type and profile type ignores sRGB and always returns linear pixel
configs.

BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1789663002

Review URL: https://codereview.chromium.org/1789663002
2016-03-21 06:55:37 -07:00
..
mac move HelloWorld to be a peer of SampleApp 2015-02-02 12:55:14 -08:00
HelloWorld.cpp sRGB support in Ganesh. Several pieces: 2016-03-21 06:55:37 -07:00
HelloWorld.h Propagate SkSurfaceProps to more call sites 2015-06-23 06:26:08 -07:00
SkiaSDLExample.cpp Create a standalone example for using Skia with SDL 2015-11-13 11:22:19 -08:00