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

Side by Side Diff: ui/gfx/scoped_sk_region.h

Issue 1543183002: Switch to standard integer types in ui/gfx/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years 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
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 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
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_
OLDNEW
« no previous file with comments | « ui/gfx/scoped_ns_graphics_context_save_gstate_mac.h ('k') | ui/gfx/scoped_ui_graphics_push_context_ios.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698