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

Unified Diff: ui/gfx/scoped_sk_region.h

Issue 1939143002: Remove all uses of skia::RefPtr and stale includes (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 7 months 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 side-by-side diff with in-line comments
Download patch
Index: ui/gfx/scoped_sk_region.h
diff --git a/ui/gfx/scoped_sk_region.h b/ui/gfx/scoped_sk_region.h
deleted file mode 100644
index c635fec3e19af0c3bcd03801056330e34645d277..0000000000000000000000000000000000000000
--- a/ui/gfx/scoped_sk_region.h
+++ /dev/null
@@ -1,46 +0,0 @@
-// 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 "base/macros.h"
-#include "third_party/skia/include/core/SkRegion.h"
-
-namespace gfx {
-
-// Wraps an SkRegion.
-class ScopedSkRegion {
- public:
- ScopedSkRegion() : region_(NULL) {}
- explicit ScopedSkRegion(SkRegion* region) : region_(region) {}
-
- ~ScopedSkRegion() {
- delete region_;
- }
-
- void Set(SkRegion* region) {
- delete region_;
- region_ = region;
- }
-
- SkRegion* Get() {
- return region_;
- }
-
- SkRegion* release() {
- SkRegion* region = region_;
- region_ = NULL;
- return region;
- }
-
- private:
- SkRegion* region_;
-
- DISALLOW_COPY_AND_ASSIGN(ScopedSkRegion);
-};
-
-} // namespace gfx
-
-#endif // UI_GFX_SCOPED_SK_REGION_H_

Powered by Google App Engine
This is Rietveld 408576698