| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CC_OUTPUT_OVERLAY_CANDIDATE_H_ | 5 #ifndef CC_OUTPUT_OVERLAY_CANDIDATE_H_ |
| 6 #define CC_OUTPUT_OVERLAY_CANDIDATE_H_ | 6 #define CC_OUTPUT_OVERLAY_CANDIDATE_H_ |
| 7 | 7 |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "cc/base/cc_export.h" | 10 #include "cc/base/cc_export.h" |
| 11 #include "cc/resources/resource_format.h" | 11 #include "cc/resources/resource_format.h" |
| 12 #include "ui/gfx/geometry/rect.h" | 12 #include "ui/gfx/geometry/rect_f.h" |
| 13 #include "ui/gfx/geometry/size.h" |
| 13 #include "ui/gfx/overlay_transform.h" | 14 #include "ui/gfx/overlay_transform.h" |
| 14 #include "ui/gfx/transform.h" | 15 #include "ui/gfx/transform.h" |
| 15 | 16 |
| 17 namespace gfx { |
| 18 class Rect; |
| 19 } |
| 20 |
| 16 namespace cc { | 21 namespace cc { |
| 17 | 22 |
| 18 class CC_EXPORT OverlayCandidate { | 23 class CC_EXPORT OverlayCandidate { |
| 19 public: | 24 public: |
| 20 static gfx::OverlayTransform GetOverlayTransform( | 25 static gfx::OverlayTransform GetOverlayTransform( |
| 21 const gfx::Transform& quad_transform, | 26 const gfx::Transform& quad_transform, |
| 22 bool y_flipped); | 27 bool y_flipped); |
| 23 // Apply transform |delta| to |in| and return the resulting transform, | 28 // Apply transform |delta| to |in| and return the resulting transform, |
| 24 // or OVERLAY_TRANSFORM_INVALID. | 29 // or OVERLAY_TRANSFORM_INVALID. |
| 25 static gfx::OverlayTransform ModifyTransform(gfx::OverlayTransform in, | 30 static gfx::OverlayTransform ModifyTransform(gfx::OverlayTransform in, |
| (...skipping 24 matching lines...) Expand all Loading... |
| 50 // To be modified by the implementer if this candidate can go into | 55 // To be modified by the implementer if this candidate can go into |
| 51 // an overlay. | 56 // an overlay. |
| 52 bool overlay_handled; | 57 bool overlay_handled; |
| 53 }; | 58 }; |
| 54 | 59 |
| 55 typedef std::vector<OverlayCandidate> OverlayCandidateList; | 60 typedef std::vector<OverlayCandidate> OverlayCandidateList; |
| 56 | 61 |
| 57 } // namespace cc | 62 } // namespace cc |
| 58 | 63 |
| 59 #endif // CC_OUTPUT_OVERLAY_CANDIDATE_H_ | 64 #endif // CC_OUTPUT_OVERLAY_CANDIDATE_H_ |
| OLD | NEW |