OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2010 Google Inc. | 2 * Copyright 2010 Google Inc. |
3 * | 3 * |
4 * Use of this source code is governed by a BSD-style license that can be | 4 * Use of this source code is governed by a BSD-style license that can be |
5 * found in the LICENSE file. | 5 * found in the LICENSE file. |
6 */ | 6 */ |
7 | 7 |
8 #ifndef GrRect_DEFINED | 8 #ifndef GrRect_DEFINED |
9 #define GrRect_DEFINED | 9 #define GrRect_DEFINED |
10 | 10 |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
48 | 48 |
49 void set(const SkIRect& r) { | 49 void set(const SkIRect& r) { |
50 fLeft = SkToS16(r.fLeft); | 50 fLeft = SkToS16(r.fLeft); |
51 fTop = SkToS16(r.fTop); | 51 fTop = SkToS16(r.fTop); |
52 fRight = SkToS16(r.fRight); | 52 fRight = SkToS16(r.fRight); |
53 fBottom = SkToS16(r.fBottom); | 53 fBottom = SkToS16(r.fBottom); |
54 } | 54 } |
55 }; | 55 }; |
56 | 56 |
57 #endif | 57 #endif |
OLD | NEW |