| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "gfx/path.h" | 5 #include "gfx/path.h" |
| 6 | 6 |
| 7 #include <gdk/gdk.h> | 7 #include <gdk/gdk.h> |
| 8 | 8 |
| 9 #include "base/scoped_ptr.h" | 9 #include "base/scoped_ptr.h" |
| 10 #include "base/command_line.h" | 10 #include "base/command_line.h" |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 46 } | 46 } |
| 47 | 47 |
| 48 // static | 48 // static |
| 49 NativeRegion Path::SubtractRegion(NativeRegion r1, NativeRegion r2) { | 49 NativeRegion Path::SubtractRegion(NativeRegion r1, NativeRegion r2) { |
| 50 GdkRegion* copy = gdk_region_copy(r1); | 50 GdkRegion* copy = gdk_region_copy(r1); |
| 51 gdk_region_subtract(copy, r2); | 51 gdk_region_subtract(copy, r2); |
| 52 return copy; | 52 return copy; |
| 53 } | 53 } |
| 54 | 54 |
| 55 } // namespace gfx | 55 } // namespace gfx |
| OLD | NEW |