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

Side by Side Diff: cc/stubs/float_quad.h

Issue 10984053: cc: Use ui/gfx geometry types for the CCRenderPass and CCDrawQuad classes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 8 years, 2 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 | Annotate | Revision Log
« no previous file with comments | « cc/stubs/float_point.h ('k') | cc/stubs/float_rect.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #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
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
OLDNEW
« no previous file with comments | « cc/stubs/float_point.h ('k') | cc/stubs/float_rect.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698