forked from flutter/engine
-
Notifications
You must be signed in to change notification settings - Fork 2
/
dl_tile_mode.h
33 lines (25 loc) · 1.1 KB
/
dl_tile_mode.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef FLUTTER_DISPLAY_LIST_DISPLAY_LIST_TILE_MODE_H_
#define FLUTTER_DISPLAY_LIST_DISPLAY_LIST_TILE_MODE_H_
namespace flutter {
// An enum to define how to repeat, fold, or omit colors outside of the
// typically defined range of the source of the colors (such as the
// bounds of an image or the defining geoetry of a gradient).
enum class DlTileMode {
// Replicate the edge color if the |DlColorSource| draws outside of the
// defined bounds.
kClamp,
// Repeat the |DlColorSource|'s defined colors both horizontally and
// vertically (or both along and perpendicular to a gradient's geometry).
kRepeat,
// Repeat the |DlColorSource|'s colors horizontally and vertically,
// alternating mirror images so that adjacent images always seam.
kMirror,
// Only draw within the original domain, return transparent-black everywhere
// else.
kDecal,
};
} // namespace flutter
#endif // FLUTTER_DISPLAY_LIST_DISPLAY_LIST_TILE_MODE_H_