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 #include "ui/base/gtk/scoped_region.h"
11 ScopedRegion::ScopedRegion() : region_(NULL) {}
13 ScopedRegion::ScopedRegion(GdkRegion* region) : region_(region) {}
15 ScopedRegion::~ScopedRegion() {
19 void ScopedRegion::Set(GdkRegion* region) {
24 GdkRegion* ScopedRegion::Get() {
28 GdkRegion* ScopedRegion::release() {
29 GdkRegion* region = region_;
34 void ScopedRegion::Close() {
36 gdk_region_destroy(region_);