blob: 4a34aa02fa75d8b99156e437d97fc4388ad3938b [file] [log] [blame]
// Copyright 2019 The Fuchsia Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
library fuchsia.ui.brightness;
/// Handler implemented by the owner of the presentation.
/// The UI component that controls brightness and screen tint uses this protocol to request changes
/// to the screen's color adjustment matrix.
@discoverable
protocol ColorAdjustmentHandler {
/// Called when the color adjustment has changed.
SetColorAdjustment(struct {
color_adjustment ColorAdjustmentTable;
});
};
/// The table for screen color tint adjustments.
type ColorAdjustmentTable = table {
/// 3x3 Matrix in row-major form which will be used by root presenter
/// to apply color adjustment.
/// This field may be omitted to disable color adjustment.
1: matrix array<float32, 9>;
};