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

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

Issue 11266030: Use gfx:: Geometry types for the resource provider and layer updater classes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: uint8 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
« no previous file with comments | « cc/software_renderer_unittest.cc ('k') | cc/test/tiled_layer_test_common.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_INTRECT_H_ 5 #ifndef CC_STUBS_INTRECT_H_
6 #define CC_STUBS_INTRECT_H_ 6 #define CC_STUBS_INTRECT_H_
7 7
8 #include "IntPoint.h" 8 #include "IntPoint.h"
9 #include "IntSize.h" 9 #include "IntSize.h"
10 #if INSIDE_WEBKIT_BUILD 10 #if INSIDE_WEBKIT_BUILD
(...skipping 29 matching lines...) Expand all
40 40
41 } 41 }
42 42
43 explicit IntRect(gfx::Rect rect) 43 explicit IntRect(gfx::Rect rect)
44 : WebCore::IntRect(rect.x(), rect.y(), rect.width(), rect.height()) 44 : WebCore::IntRect(rect.x(), rect.y(), rect.width(), rect.height())
45 { 45 {
46 } 46 }
47 47
48 operator gfx::Rect() const { return gfx::Rect(x(), y(), width(), height()); } 48 operator gfx::Rect() const { return gfx::Rect(x(), y(), width(), height()); }
49 49
50 IntPoint location() const { return WebCore::IntRect::location(); }
51 IntSize size() const { return WebCore::IntRect::size(); }
52
50 private: 53 private:
51 #if defined(OS_MACOSX) 54 #if defined(OS_MACOSX)
52 operator CGRect() const; 55 operator CGRect() const;
53 #endif 56 #endif
54 }; 57 };
55 58
56 } 59 }
57 60
58 #endif 61 #endif
OLDNEW
« no previous file with comments | « cc/software_renderer_unittest.cc ('k') | cc/test/tiled_layer_test_common.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698