| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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 #ifndef CC_STUBS_FLOATQUAD_H_ |
| 6 #define CC_STUBS_FLOATQUAD_H_ | 6 #define CC_STUBS_FLOATQUAD_H_ |
| 7 | 7 |
| 8 #include "ui/gfx/rect.h" |
| 9 #include "ui/gfx/rect_f.h" |
| 8 #include "FloatPoint.h" | 10 #include "FloatPoint.h" |
| 9 #include "FloatRect.h" | 11 #include "FloatRect.h" |
| 10 #if INSIDE_WEBKIT_BUILD | 12 #if INSIDE_WEBKIT_BUILD |
| 11 #include "Source/WebCore/platform/graphics/FloatQuad.h" | 13 #include "Source/WebCore/platform/graphics/FloatQuad.h" |
| 12 #else | 14 #else |
| 13 #include "third_party/WebKit/Source/WebCore/platform/graphics/FloatQuad.h" | 15 #include "third_party/WebKit/Source/WebCore/platform/graphics/FloatQuad.h" |
| 14 #endif | 16 #endif |
| 15 | 17 |
| 16 namespace cc { | 18 namespace cc { |
| 17 | 19 |
| (...skipping 24 matching lines...) Expand all Loading... |
| 42 | 44 |
| 43 FloatQuad(const WebCore::IntRect& rect) | 45 FloatQuad(const WebCore::IntRect& rect) |
| 44 : WebCore::FloatQuad(rect) | 46 : WebCore::FloatQuad(rect) |
| 45 { | 47 { |
| 46 } | 48 } |
| 47 | 49 |
| 48 FloatQuad(const WebCore::FloatQuad& quad) | 50 FloatQuad(const WebCore::FloatQuad& quad) |
| 49 : WebCore::FloatQuad(quad) | 51 : WebCore::FloatQuad(quad) |
| 50 { | 52 { |
| 51 } | 53 } |
| 54 |
| 55 FloatQuad(const gfx::Rect& rect) |
| 56 : WebCore::FloatQuad(WebCore::IntRect(rect.x(), rect.y(), rect.width(),
rect.height())) |
| 57 { |
| 58 } |
| 59 |
| 60 FloatQuad(const gfx::RectF& rect) |
| 61 : WebCore::FloatQuad(WebCore::FloatRect(rect.x(), rect.y(), rect.width()
, rect.height())) |
| 62 { |
| 63 } |
| 52 }; | 64 }; |
| 53 | 65 |
| 54 } | 66 } |
| 55 | 67 |
| 56 #endif | 68 #endif |
| OLD | NEW |