OLD | NEW |
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 BitmapPlatformDeviceLinux_h | 5 #ifndef SKIA_EXT_BITMAP_PLATFORM_DEVICE_LINUX_H_ |
6 #define BitmapPlatformDeviceLinux_h | 6 #define SKIA_EXT_BITMAP_PLATFORM_DEVICE_LINUX_H_ |
7 | 7 |
8 #include "PlatformDeviceLinux.h" | |
9 #include "base/ref_counted.h" | 8 #include "base/ref_counted.h" |
| 9 #include "skia/ext/platform_device_linux.h" |
10 | 10 |
11 typedef struct _cairo_surface cairo_surface_t; | 11 typedef struct _cairo_surface cairo_surface_t; |
12 | 12 |
13 // ----------------------------------------------------------------------------- | 13 // ----------------------------------------------------------------------------- |
14 // Image byte ordering on Linux: | 14 // Image byte ordering on Linux: |
15 // | 15 // |
16 // Pixels are packed into 32-bit words these days. Even for 24-bit images, | 16 // Pixels are packed into 32-bit words these days. Even for 24-bit images, |
17 // often 8-bits will be left unused for alignment reasons. Thus, when you see | 17 // often 8-bits will be left unused for alignment reasons. Thus, when you see |
18 // ARGB as the byte order you have to wonder if that's in memory order or | 18 // ARGB as the byte order you have to wonder if that's in memory order or |
19 // little-endian order. Here I'll write A.R.G.B to specifiy the memory order. | 19 // little-endian order. Here I'll write A.R.G.B to specifiy the memory order. |
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
81 virtual bool IsVectorial() { return false; } | 81 virtual bool IsVectorial() { return false; } |
82 | 82 |
83 cairo_surface_t* surface() const; | 83 cairo_surface_t* surface() const; |
84 | 84 |
85 private: | 85 private: |
86 scoped_refptr<BitmapPlatformDeviceLinuxData> data_; | 86 scoped_refptr<BitmapPlatformDeviceLinuxData> data_; |
87 }; | 87 }; |
88 | 88 |
89 } // namespace gfx | 89 } // namespace gfx |
90 | 90 |
91 #endif // BitmapPlatformDeviceLinux_h | 91 #endif // SKIA_EXT_BITMAP_PLATFORM_DEVICE_LINUX_H_ |
OLD | NEW |