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 UI_GFX_SCOPED_SK_REGION_H_ | 5 #ifndef UI_GFX_SCOPED_SK_REGION_H_ |
6 #define UI_GFX_SCOPED_SK_REGION_H_ | 6 #define UI_GFX_SCOPED_SK_REGION_H_ |
7 | 7 |
| 8 #include "base/macros.h" |
8 #include "third_party/skia/include/core/SkRegion.h" | 9 #include "third_party/skia/include/core/SkRegion.h" |
9 | 10 |
10 namespace gfx { | 11 namespace gfx { |
11 | 12 |
12 // Wraps an SkRegion. | 13 // Wraps an SkRegion. |
13 class ScopedSkRegion { | 14 class ScopedSkRegion { |
14 public: | 15 public: |
15 ScopedSkRegion() : region_(NULL) {} | 16 ScopedSkRegion() : region_(NULL) {} |
16 explicit ScopedSkRegion(SkRegion* region) : region_(region) {} | 17 explicit ScopedSkRegion(SkRegion* region) : region_(region) {} |
17 | 18 |
(...skipping 18 matching lines...) Expand all Loading... |
36 | 37 |
37 private: | 38 private: |
38 SkRegion* region_; | 39 SkRegion* region_; |
39 | 40 |
40 DISALLOW_COPY_AND_ASSIGN(ScopedSkRegion); | 41 DISALLOW_COPY_AND_ASSIGN(ScopedSkRegion); |
41 }; | 42 }; |
42 | 43 |
43 } // namespace gfx | 44 } // namespace gfx |
44 | 45 |
45 #endif // UI_GFX_SCOPED_SK_REGION_H_ | 46 #endif // UI_GFX_SCOPED_SK_REGION_H_ |
OLD | NEW |