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

Side by Side Diff: base/gfx/gdi_util.h

Issue 1612: Implement "iframe shim" behavior for windowed plugins.... (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: '' Created 12 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 | « base/gfx/bitmap_platform_device_win.cc ('k') | base/gfx/gdi_util.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Property Changes:
Added: svn:mergeinfo
OLDNEW
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 #ifndef BASE_GFX_BITMAP_HEADER_H__ 5 #ifndef BASE_GFX_GDI_UTIL_H__
6 #define BASE_GFX_BITMAP_HEADER_H__ 6 #define BASE_GFX_GDI_UTIL_H__
7 7
8 #include <vector>
8 #include <windows.h> 9 #include <windows.h>
10 #include "base/gfx/rect.h"
9 11
10 namespace gfx { 12 namespace gfx {
11 13
12 // Creates a BITMAPINFOHEADER structure given the bitmap's size. 14 // Creates a BITMAPINFOHEADER structure given the bitmap's size.
13 void CreateBitmapHeader(int width, int height, BITMAPINFOHEADER* hdr); 15 void CreateBitmapHeader(int width, int height, BITMAPINFOHEADER* hdr);
14 16
15 // Creates a BITMAPINFOHEADER structure given the bitmap's size and 17 // Creates a BITMAPINFOHEADER structure given the bitmap's size and
16 // color depth in bits per pixel. 18 // color depth in bits per pixel.
17 void CreateBitmapHeaderWithColorDepth(int width, int height, int color_depth, 19 void CreateBitmapHeaderWithColorDepth(int width, int height, int color_depth,
18 BITMAPINFOHEADER* hdr); 20 BITMAPINFOHEADER* hdr);
19 21
20 // Creates a BITMAPV4HEADER structure given the bitmap's size. You probably 22 // Creates a BITMAPV4HEADER structure given the bitmap's size. You probably
21 // only need to use BMP V4 if you need transparency (alpha channel). This 23 // only need to use BMP V4 if you need transparency (alpha channel). This
22 // function sets the AlphaMask to 0xff000000. 24 // function sets the AlphaMask to 0xff000000.
23 void CreateBitmapV4Header(int width, int height, BITMAPV4HEADER* hdr); 25 void CreateBitmapV4Header(int width, int height, BITMAPV4HEADER* hdr);
24 26
25 // Creates a monochrome bitmap header. 27 // Creates a monochrome bitmap header.
26 void CreateMonochromeBitmapHeader(int width, int height, BITMAPINFOHEADER* hdr); 28 void CreateMonochromeBitmapHeader(int width, int height, BITMAPINFOHEADER* hdr);
27 29
30 // Modify the given hrgn by subtracting the given rectangles.
31 void SubtractRectanglesFromRegion(HRGN hrgn,
32 const std::vector<gfx::Rect>& cutouts);
28 33
29 } // namespace gfx 34 } // namespace gfx
30 35
31 #endif // BASE_GFX_BITMAP_HEADER_H__ 36 #endif // BASE_GFX_GDI_UTIL_H__
32 37
OLDNEW
« no previous file with comments | « base/gfx/bitmap_platform_device_win.cc ('k') | base/gfx/gdi_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698