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

Side by Side Diff: app/gfx/gdi_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.h ('k') | app/gfx/gtk_util.cc » ('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) 2006-2008 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/gdi_util.h" 5 #include "app/gfx/gdi_util.h"
6 6
7 namespace gfx { 7 namespace gfx {
8 8
9 void CreateBitmapHeader(int width, int height, BITMAPINFOHEADER* hdr) { 9 void CreateBitmapHeader(int width, int height, BITMAPINFOHEADER* hdr) {
10 CreateBitmapHeaderWithColorDepth(width, height, 32, hdr); 10 CreateBitmapHeaderWithColorDepth(width, height, 32, hdr);
11 } 11 }
12 12
13 void CreateBitmapHeaderWithColorDepth(int width, int height, int color_depth, 13 void CreateBitmapHeaderWithColorDepth(int width, int height, int color_depth,
14 BITMAPINFOHEADER* hdr) { 14 BITMAPINFOHEADER* hdr) {
15 // These values are shared with gfx::PlatformDevice 15 // These values are shared with gfx::PlatformDevice
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 cutouts[i].y(), 70 cutouts[i].y(),
71 cutouts[i].right(), 71 cutouts[i].right(),
72 cutouts[i].bottom()); 72 cutouts[i].bottom());
73 ::CombineRgn(hrgn, hrgn, cutout, RGN_DIFF); 73 ::CombineRgn(hrgn, hrgn, cutout, RGN_DIFF);
74 } 74 }
75 ::DeleteObject(cutout); 75 ::DeleteObject(cutout);
76 } 76 }
77 } 77 }
78 78
79 } // namespace gfx 79 } // namespace gfx
OLDNEW
« no previous file with comments | « app/gfx/gdi_util.h ('k') | app/gfx/gtk_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698