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: skia/ext/platform_canvas.h

Issue 606075: Second set adding in Solaris as an OS option (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: '' Created 10 years, 10 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 | « media/media.gyp ('k') | skia/ext/platform_device.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) 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 SKIA_EXT_PLATFORM_CANVAS_H_ 5 #ifndef SKIA_EXT_PLATFORM_CANVAS_H_
6 #define SKIA_EXT_PLATFORM_CANVAS_H_ 6 #define SKIA_EXT_PLATFORM_CANVAS_H_
7 7
8 // The platform-specific device will include the necessary platform headers 8 // The platform-specific device will include the necessary platform headers
9 // to get the surface type. 9 // to get the surface type.
10 #include "skia/ext/platform_device.h" 10 #include "skia/ext/platform_device.h"
(...skipping 29 matching lines...) Expand all
40 #elif defined(__APPLE__) 40 #elif defined(__APPLE__)
41 // Mac ----------------------------------------------------------------------- 41 // Mac -----------------------------------------------------------------------
42 42
43 PlatformCanvas(int width, int height, bool is_opaque, 43 PlatformCanvas(int width, int height, bool is_opaque,
44 CGContextRef context); 44 CGContextRef context);
45 PlatformCanvas(int width, int height, bool is_opaque, uint8_t* context); 45 PlatformCanvas(int width, int height, bool is_opaque, uint8_t* context);
46 46
47 // For two-part init, call if you use the no-argument constructor above 47 // For two-part init, call if you use the no-argument constructor above
48 bool initialize(int width, int height, bool is_opaque, uint8_t* data = NULL); 48 bool initialize(int width, int height, bool is_opaque, uint8_t* data = NULL);
49 49
50 #elif defined(__linux__) || defined(__FreeBSD__) || defined(__OpenBSD__) 50 #elif defined(__linux__) || defined(__FreeBSD__) || defined(__OpenBSD__) || \
51 defined(__Solaris__)
51 // Linux --------------------------------------------------------------------- 52 // Linux ---------------------------------------------------------------------
52 53
53 // Construct a canvas from the given memory region. The memory is not cleared 54 // Construct a canvas from the given memory region. The memory is not cleared
54 // first. @data must be, at least, @height * StrideForWidth(@width) bytes. 55 // first. @data must be, at least, @height * StrideForWidth(@width) bytes.
55 PlatformCanvas(int width, int height, bool is_opaque, uint8_t* data); 56 PlatformCanvas(int width, int height, bool is_opaque, uint8_t* data);
56 57
57 // For two-part init, call if you use the no-argument constructor above 58 // For two-part init, call if you use the no-argument constructor above
58 bool initialize(int width, int height, bool is_opaque, uint8_t* data = NULL); 59 bool initialize(int width, int height, bool is_opaque, uint8_t* data = NULL);
59 60
60 #endif 61 #endif
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
114 virtual SkDevice* setBitmapDevice(const SkBitmap& bitmap); 115 virtual SkDevice* setBitmapDevice(const SkBitmap& bitmap);
115 116
116 // Disallow copy and assign. 117 // Disallow copy and assign.
117 PlatformCanvas(const PlatformCanvas&); 118 PlatformCanvas(const PlatformCanvas&);
118 PlatformCanvas& operator=(const PlatformCanvas&); 119 PlatformCanvas& operator=(const PlatformCanvas&);
119 }; 120 };
120 121
121 } // namespace skia 122 } // namespace skia
122 123
123 #endif // SKIA_EXT_PLATFORM_CANVAS_H_ 124 #endif // SKIA_EXT_PLATFORM_CANVAS_H_
OLDNEW
« no previous file with comments | « media/media.gyp ('k') | skia/ext/platform_device.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698