Make BGRA_8888 renderable & textureable by default in the mock context
This is a temporary change to allow us to switch GrMockOptions to be based on GrColorType. Chrome sets up their FakeWebGraphicsContext3DProvider in this manner. TBR=bsalomon@google.com Change-Id: I68c6b78aeb0395e1783c7acf1dbdbd028373433c Reviewed-on: https://skia-review.googlesource.com/c/skia/+/225720 Reviewed-by: Brian Salomon <bsalomon@google.com> Reviewed-by: Greg Daniel <egdaniel@google.com> Commit-Queue: Robert Phillips <robertphillips@google.com>
This commit is contained in:
parent
05716166ae
commit
d09064263d
@ -37,13 +37,16 @@ struct GrMockRenderTargetInfo {
|
||||
struct GrMockOptions {
|
||||
GrMockOptions() {
|
||||
using Renderability = ConfigOptions::Renderability;
|
||||
// By default RGBA_8888 is textureable and renderable and A8 and RGB565 are texturable.
|
||||
// By default RGBA_8888 and BGRA_8888 are textureable and renderable and
|
||||
// A8 and RGB565 are texturable.
|
||||
fConfigOptions[kRGBA_8888_GrPixelConfig].fRenderability = Renderability::kNonMSAA;
|
||||
fConfigOptions[kRGBA_8888_GrPixelConfig].fTexturable = true;
|
||||
fConfigOptions[kAlpha_8_GrPixelConfig].fTexturable = true;
|
||||
fConfigOptions[kAlpha_8_as_Alpha_GrPixelConfig].fTexturable = true;
|
||||
fConfigOptions[kAlpha_8_as_Red_GrPixelConfig].fTexturable = true;
|
||||
fConfigOptions[kRGB_565_GrPixelConfig].fTexturable = true;
|
||||
|
||||
fConfigOptions[kBGRA_8888_GrPixelConfig] = fConfigOptions[kRGBA_8888_GrPixelConfig];
|
||||
}
|
||||
|
||||
struct ConfigOptions {
|
||||
|
Loading…
Reference in New Issue
Block a user