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_REGION_H_ | 5 #ifndef CC_STUBS_REGION_H_ |
6 #define CC_STUBS_REGION_H_ | 6 #define CC_STUBS_REGION_H_ |
7 | 7 |
| 8 #include "IntRect.h" |
| 9 #if INSIDE_WEBKIT_BUILD |
| 10 #include "Source/WebCore/platform/graphics/Region.h" |
| 11 #else |
8 #include "third_party/WebKit/Source/WebCore/platform/graphics/Region.h" | 12 #include "third_party/WebKit/Source/WebCore/platform/graphics/Region.h" |
| 13 #endif |
| 14 |
| 15 namespace cc { |
| 16 |
| 17 class Region : public WebCore::Region { |
| 18 public: |
| 19 Region() { } |
| 20 |
| 21 Region(const IntRect& rect) |
| 22 : WebCore::Region(rect) |
| 23 { |
| 24 } |
| 25 |
| 26 Region(const WebCore::IntRect& rect) |
| 27 : WebCore::Region(rect) |
| 28 { |
| 29 } |
| 30 |
| 31 Region(const WebCore::Region& region) |
| 32 : WebCore::Region(region) |
| 33 { |
| 34 } |
| 35 }; |
| 36 |
| 37 } |
9 | 38 |
10 #endif // CC_STUBS_REGION_H_ | 39 #endif // CC_STUBS_REGION_H_ |
OLD | NEW |