OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 2012 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_STUBS_FLOATQUAD_H_ | 5 // Temporary forwarding header |
6 #define CC_STUBS_FLOATQUAD_H_ | 6 #include "cc/stubs/float_quad.h" |
7 | |
8 #include "FloatPoint.h" | |
9 #include "FloatRect.h" | |
10 #if INSIDE_WEBKIT_BUILD | |
11 #include "Source/WebCore/platform/graphics/FloatQuad.h" | |
12 #else | |
13 #include "third_party/WebKit/Source/WebCore/platform/graphics/FloatQuad.h" | |
14 #endif | |
15 | |
16 namespace cc { | |
17 | |
18 class FloatQuad : public WebCore::FloatQuad | |
19 { | |
20 public: | |
21 FloatQuad() { } | |
22 | |
23 FloatQuad(const FloatPoint& p1, const FloatPoint& p2, const FloatPoint& p3,
const FloatPoint& p4) | |
24 : WebCore::FloatQuad(p1, p2, p3, p4) | |
25 { | |
26 } | |
27 | |
28 FloatQuad(const FloatRect& rect) | |
29 : WebCore::FloatQuad(rect) | |
30 { | |
31 } | |
32 | |
33 FloatQuad(const IntRect& rect) | |
34 : WebCore::FloatQuad(rect) | |
35 { | |
36 } | |
37 | |
38 FloatQuad(const WebCore::FloatRect& rect) | |
39 : WebCore::FloatQuad(rect) | |
40 { | |
41 } | |
42 | |
43 FloatQuad(const WebCore::IntRect& rect) | |
44 : WebCore::FloatQuad(rect) | |
45 { | |
46 } | |
47 | |
48 FloatQuad(const WebCore::FloatQuad& quad) | |
49 : WebCore::FloatQuad(quad) | |
50 { | |
51 } | |
52 }; | |
53 | |
54 } | |
55 | |
56 #endif | |
OLD | NEW |