[email protected] | 3950477d | 2014-04-03 07:26:24 | [diff] [blame] | 1 | // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 | // Use of this source code is governed by a BSD-style license that can be |
| 3 | // found in the LICENSE file. |
| 4 | |
| 5 | #ifndef UI_GFX_OVERLAY_TRANSFORM_H_ |
| 6 | #define UI_GFX_OVERLAY_TRANSFORM_H_ |
| 7 | |
| 8 | namespace gfx { |
| 9 | |
| 10 | // Describes transformation to be applied to the buffer before presenting |
halliwell | aa11128 | 2015-05-13 21:58:43 | [diff] [blame] | 11 | // to screen. Rotations are expressed anticlockwise. |
[email protected] | 3950477d | 2014-04-03 07:26:24 | [diff] [blame] | 12 | enum OverlayTransform { |
| 13 | OVERLAY_TRANSFORM_INVALID, |
| 14 | OVERLAY_TRANSFORM_NONE, |
| 15 | OVERLAY_TRANSFORM_FLIP_HORIZONTAL, |
| 16 | OVERLAY_TRANSFORM_FLIP_VERTICAL, |
| 17 | OVERLAY_TRANSFORM_ROTATE_90, |
| 18 | OVERLAY_TRANSFORM_ROTATE_180, |
| 19 | OVERLAY_TRANSFORM_ROTATE_270, |
achaulk | ad89643 | 2015-06-05 16:57:30 | [diff] [blame] | 20 | OVERLAY_TRANSFORM_LAST = OVERLAY_TRANSFORM_ROTATE_270 |
[email protected] | 3950477d | 2014-04-03 07:26:24 | [diff] [blame] | 21 | }; |
| 22 | |
| 23 | } // namespace gfx |
| 24 | |
| 25 | #endif // UI_GFX_OVERLAY_TRANSFORM_H_ |