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

Unified Diff: ui/gfx/path_aura.cc

Issue 854713003: More old files deletion. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Fix tryjobs? Created 5 years, 11 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
« no previous file with comments | « ui/gfx/path.cc ('k') | ui/gfx/path_win.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gfx/path_aura.cc
diff --git a/ui/gfx/path_aura.cc b/ui/gfx/path_aura.cc
deleted file mode 100644
index cc68458902e81c1e68a738ef2260cd1ba63007b9..0000000000000000000000000000000000000000
--- a/ui/gfx/path_aura.cc
+++ /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.
-
-#include "ui/gfx/path.h"
-
-#include "base/memory/scoped_ptr.h"
-#include "third_party/skia/include/core/SkRegion.h"
-
-namespace gfx {
-
-SkRegion* Path::CreateNativeRegion() const {
- // Create a clip region that contains |this| path.
- const SkRect bounds = getBounds();
- SkIRect ibounds;
- bounds.round(&ibounds);
- SkRegion clip_region;
- clip_region.setRect(ibounds);
-
- SkRegion* region = new SkRegion;
- region->setPath(*this, clip_region);
- return region;
-}
-
-// static
-NativeRegion Path::IntersectRegions(NativeRegion r1, NativeRegion r2) {
- SkRegion* new_region = new SkRegion;
- new_region->op(*r1, *r2, SkRegion::kIntersect_Op);
- return new_region;
-}
-
-// static
-NativeRegion Path::CombineRegions(NativeRegion r1, NativeRegion r2) {
- SkRegion* new_region = new SkRegion;
- new_region->op(*r1, *r2, SkRegion::kUnion_Op);
- return new_region;
-}
-
-// static
-NativeRegion Path::SubtractRegion(NativeRegion r1, NativeRegion r2) {
- SkRegion* new_region = new SkRegion;
- new_region->op(*r1, *r2, SkRegion::kDifference_Op);
- return new_region;
-}
-
-} // namespace gfx
« no previous file with comments | « ui/gfx/path.cc ('k') | ui/gfx/path_win.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698