// Copyright 2017 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
enum PredefinedColorSpace {
"srgb", // default
"rec2020", // Enabled only in CanvasHDR (not in any spec)
"display-p3",
"rec2100-hlg", // Enabled only in CanvasHDR
"rec2100-pq", // Enabled only in CanvasHDR
"srgb-linear", // Enabled only in CanvasHDR
};
enum ImageDataStorageFormat {
"uint8", // default
"uint16",
"float32",
};
dictionary ImageDataSettings {
PredefinedColorSpace colorSpace;
[RuntimeEnabled=CanvasFloatingPoint] ImageDataStorageFormat storageFormat = "uint8";
};