OLD | NEW |
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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 "base/gfx/gtk_util.h" | 5 #include "app/gfx/gtk_util.h" |
6 | 6 |
7 #include <gdk/gdk.h> | 7 #include <gdk/gdk.h> |
8 #include <gtk/gtk.h> | 8 #include <gtk/gtk.h> |
9 #include <stdlib.h> | 9 #include <stdlib.h> |
10 | 10 |
11 #include "base/basictypes.h" | 11 #include "base/basictypes.h" |
12 #include "base/gfx/rect.h" | 12 #include "base/gfx/rect.h" |
13 #include "base/linux_util.h" | 13 #include "base/linux_util.h" |
14 #include "third_party/skia/include/core/SkBitmap.h" | 14 #include "third_party/skia/include/core/SkBitmap.h" |
15 #include "third_party/skia/include/core/SkUnPreMultiply.h" | 15 #include "third_party/skia/include/core/SkUnPreMultiply.h" |
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
77 for (size_t i = 0; i < cutouts.size(); ++i) { | 77 for (size_t i = 0; i < cutouts.size(); ++i) { |
78 GdkRectangle rect = cutouts[i].ToGdkRectangle(); | 78 GdkRectangle rect = cutouts[i].ToGdkRectangle(); |
79 GdkRegion* rect_region = gdk_region_rectangle(&rect); | 79 GdkRegion* rect_region = gdk_region_rectangle(&rect); |
80 gdk_region_subtract(region, rect_region); | 80 gdk_region_subtract(region, rect_region); |
81 // TODO(deanm): It would be nice to be able to reuse the GdkRegion here. | 81 // TODO(deanm): It would be nice to be able to reuse the GdkRegion here. |
82 gdk_region_destroy(rect_region); | 82 gdk_region_destroy(rect_region); |
83 } | 83 } |
84 } | 84 } |
85 | 85 |
86 } // namespace gfx | 86 } // namespace gfx |
OLD | NEW |