Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(517)

Side by Side Diff: cc/output/overlay_candidate.h

Issue 1314943008: cc: Remove implicit conversions from Rect to RectF in src/cc/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698