| OLD | NEW |
| 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 Loading... |
| 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 |
| OLD | NEW |