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

Unified Diff: ui/gfx/path_aura.cc

Issue 8094001: More aura build fixes (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Removed other patch Created 9 years, 3 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/path_aura.cc
diff --git a/ui/gfx/path_aura.cc b/ui/gfx/path_aura.cc
new file mode 100644
index 0000000000000000000000000000000000000000..b4c3ed46809e84d0901288b14d737b4254d2e5ef
--- /dev/null
+++ b/ui/gfx/path_aura.cc
@@ -0,0 +1,36 @@
+// Copyright (c) 2011 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 "third_party/skia/include/core/SkRegion.h"
+
+namespace gfx {
+
+SkRegion* Path::CreateNativeRegion() const {
+ return new SkRegion;
+}
+
+// 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
« chrome/app/chrome_exe_main_aura.cc ('K') | « chrome/chrome_renderer.gypi ('k') | ui/ui.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698