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

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

Issue 87016: Eliminate a circular dependency by making BGRAToRGBA() generic... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 8 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/clipboard_linux.cc ('k') | base/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) 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 #ifndef BASE_GFX_GTK_UTIL_H_ 5 #ifndef BASE_GFX_GTK_UTIL_H_
6 #define BASE_GFX_GTK_UTIL_H_ 6 #define BASE_GFX_GTK_UTIL_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 10 matching lines...) Expand all
21 class Rect; 21 class Rect;
22 22
23 extern const GdkColor kGdkWhite; 23 extern const GdkColor kGdkWhite;
24 extern const GdkColor kGdkBlack; 24 extern const GdkColor kGdkBlack;
25 extern const GdkColor kGdkGreen; 25 extern const GdkColor kGdkGreen;
26 26
27 // Modify the given region by subtracting the given rectangles. 27 // Modify the given region by subtracting the given rectangles.
28 void SubtractRectanglesFromRegion(GdkRegion* region, 28 void SubtractRectanglesFromRegion(GdkRegion* region,
29 const std::vector<Rect>& cutouts); 29 const std::vector<Rect>& cutouts);
30 30
31 // Makes a copy of |pixels| with the ordering changed from BGRA to RGBA.
32 // The caller is responsible for free()ing the data. If |stride| is 0,
33 // it's assumed to be 4 * |width|.
34 uint8_t* BGRAToRGBA(const uint8_t* pixels, int width, int height, int stride);
35
36 } // namespace gfx 31 } // namespace gfx
37 32
38 #endif // BASE_GFX_GTK_UTIL_H_ 33 #endif // BASE_GFX_GTK_UTIL_H_
OLDNEW
« no previous file with comments | « base/clipboard_linux.cc ('k') | base/gfx/gtk_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698