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
3 // found in the LICENSE file.
5 #ifndef UI_GFX_SCOPED_SK_REGION_H_
6 #define UI_GFX_SCOPED_SK_REGION_H_
8 #include "third_party/skia/include/core/SkRegion.h"
13 class ScopedSkRegion
{
15 ScopedSkRegion() : region_(NULL
) {}
16 explicit ScopedSkRegion(SkRegion
* region
) : region_(region
) {}
22 void Set(SkRegion
* region
) {
32 SkRegion
* region
= region_
;
40 DISALLOW_COPY_AND_ASSIGN(ScopedSkRegion
);
45 #endif // UI_GFX_SCOPED_SK_REGION_H_