OLD | NEW |
(Empty) | |
| 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 CC_OUTPUT_OVERLAY_CANDIDATE_H_ |
| 6 #define CC_OUTPUT_OVERLAY_CANDIDATE_H_ |
| 7 |
| 8 #include <vector> |
| 9 |
| 10 #include "base/basictypes.h" |
| 11 #include "cc/base/cc_export.h" |
| 12 #include "cc/resources/resource_format.h" |
| 13 #include "ui/gfx/geometry/rect.h" |
| 14 |
| 15 namespace cc { |
| 16 |
| 17 struct CC_EXPORT OverlayCandidate { |
| 18 enum OverlayTransform { |
| 19 NONE, |
| 20 FLIP_HORIZONTAL, |
| 21 FLIP_VERTICAL, |
| 22 ROTATE_90, |
| 23 ROTATE_180, |
| 24 ROTATE_270, |
| 25 }; |
| 26 |
| 27 OverlayCandidate(); |
| 28 ~OverlayCandidate(); |
| 29 |
| 30 // Transformation to apply to layer during composition. |
| 31 OverlayTransform transform; |
| 32 // Format of the buffer to composite. |
| 33 ResourceFormat format; |
| 34 // Rect on the display to position the overlay to. |
| 35 gfx::Rect display_rect; |
| 36 // Crop within the buffer to be placed inside |display_rect|. |
| 37 gfx::RectF uv_rect; |
| 38 |
| 39 // To be modified by the implementer if this candidate can go into |
| 40 // an overlay. |
| 41 bool overlay_handled; |
| 42 }; |
| 43 |
| 44 } // namespace cc |
| 45 |
| 46 #endif // CC_OUTPUT_OVERLAY_CANDIDATE_H_ |
OLD | NEW |