| // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| // Use of this source code is governed by a BSD-style license that can be |
| // found in the LICENSE file. |
| #ifndef UI_GFX_SCOPED_SK_REGION_H_ |
| #define UI_GFX_SCOPED_SK_REGION_H_ |
| #include "third_party/skia/include/core/SkRegion.h" |
| ScopedSkRegion() : region_(NULL) {} |
| explicit ScopedSkRegion(SkRegion* region) : region_(region) {} |
| void Set(SkRegion* region) { |
| SkRegion* region = region_; |
| DISALLOW_COPY_AND_ASSIGN(ScopedSkRegion); |
| #endif // UI_GFX_SCOPED_SK_REGION_H_ |