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

Side by Side Diff: webkit/compositor_bindings/webcore_convert.cc

Issue 11369051: cc: Remove WebCore::FloatRect use from the compositor. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 1 month 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 | Annotate | Revision Log
OLDNEW
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 #include "config.h" 5 #include "config.h"
6 6
7 #include "webcore_convert.h" 7 #include "webcore_convert.h"
8 8
9 namespace WebKit { 9 namespace WebKit {
10 10
11 WebCore::FloatRect convert(const WebFloatRect& rect)
12 {
13 return WebCore::FloatRect(rect.x, rect.y, rect.width, rect.height);
14 }
15
16 WebCore::FloatPoint convert(const WebFloatPoint& point) 11 WebCore::FloatPoint convert(const WebFloatPoint& point)
17 { 12 {
18 return WebCore::FloatPoint(point.x, point.y); 13 return WebCore::FloatPoint(point.x, point.y);
19 } 14 }
20 15
21 WebCore::IntRect convert(const WebRect& rect) 16 WebCore::IntRect convert(const WebRect& rect)
22 { 17 {
23 return WebCore::IntRect(rect.x, rect.y, rect.width, rect.height); 18 return WebCore::IntRect(rect.x, rect.y, rect.width, rect.height);
24 } 19 }
25 20
(...skipping 18 matching lines...) Expand all
44 } 39 }
45 40
46 WebFloatPoint convert(const WebCore::FloatPoint& point) 41 WebFloatPoint convert(const WebCore::FloatPoint& point)
47 { 42 {
48 return WebFloatPoint(point.x(), point.y()); 43 return WebFloatPoint(point.x(), point.y());
49 } 44 }
50 45
51 } 46 }
52 47
53 48
OLDNEW
« cc/occlusion_tracker.cc ('K') | « webkit/compositor_bindings/webcore_convert.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698