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

Side by Side Diff: app/gfx/gtk_util.cc

Issue 259047: Move classes depending on Skia out of base/gfx and into app/gfx. Rename... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 2 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « app/gfx/gdi_util.cc ('k') | app/gfx/native_theme_win.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « app/gfx/gdi_util.cc ('k') | app/gfx/native_theme_win.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698