mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
Also, trim the redundant |Mode| suffix from the TransferMode names. R=ianh@google.com Review URL: https://codereview.chromium.org/1188003006.
44 lines
785 B
Dart
44 lines
785 B
Dart
// Copyright 2015 The Chromium Authors. All rights reserved.
|
|
// Use of this source code is governed by a BSD-style license that can be
|
|
// found in the LICENSE file.
|
|
|
|
part of dart.sky;
|
|
|
|
/// List of predefined color transfer modes. This list comes from Skia's
|
|
/// SkXfermode.h and the values (order) should be kept in sync.
|
|
enum TransferMode {
|
|
clear,
|
|
src,
|
|
dst,
|
|
srcOver,
|
|
dstOver,
|
|
srcIn,
|
|
dstIn,
|
|
srcOut,
|
|
dstOut,
|
|
srcATop,
|
|
dstATop,
|
|
xor,
|
|
plus,
|
|
modulate,
|
|
|
|
// Following blend modes are defined in the CSS Compositing standard.
|
|
screen, /// The last coeff mode.
|
|
|
|
overlay,
|
|
darken,
|
|
lighten,
|
|
colorDodge,
|
|
colorBurn,
|
|
hardLight,
|
|
softLight,
|
|
difference,
|
|
exclusion,
|
|
multiply, /// The last separable mode.
|
|
|
|
hue,
|
|
saturation,
|
|
color,
|
|
luminosity,
|
|
}
|