OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_BITMAP_PLATFORM_DEVICE_CAIRO_H_ | 5 #ifndef SKIA_EXT_BITMAP_PLATFORM_DEVICE_CAIRO_H_ |
6 #define SKIA_EXT_BITMAP_PLATFORM_DEVICE_CAIRO_H_ | 6 #define SKIA_EXT_BITMAP_PLATFORM_DEVICE_CAIRO_H_ |
7 | 7 |
8 #include "base/basictypes.h" | 8 #include <stdint.h> |
| 9 |
9 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
| 11 #include "base/macros.h" |
10 #include "base/memory/ref_counted.h" | 12 #include "base/memory/ref_counted.h" |
11 #include "skia/ext/platform_device.h" | 13 #include "skia/ext/platform_device.h" |
12 | 14 |
13 typedef struct _cairo_surface cairo_surface_t; | 15 typedef struct _cairo_surface cairo_surface_t; |
14 | 16 |
15 // ----------------------------------------------------------------------------- | 17 // ----------------------------------------------------------------------------- |
16 // Image byte ordering on Linux: | 18 // Image byte ordering on Linux: |
17 // | 19 // |
18 // Pixels are packed into 32-bit words these days. Even for 24-bit images, | 20 // Pixels are packed into 32-bit words these days. Even for 24-bit images, |
19 // often 8-bits will be left unused for alignment reasons. Thus, when you see | 21 // often 8-bits will be left unused for alignment reasons. Thus, when you see |
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
115 | 117 |
116 // The current clipping | 118 // The current clipping |
117 SkRegion clip_region_; | 119 SkRegion clip_region_; |
118 | 120 |
119 DISALLOW_COPY_AND_ASSIGN(BitmapPlatformDevice); | 121 DISALLOW_COPY_AND_ASSIGN(BitmapPlatformDevice); |
120 }; | 122 }; |
121 | 123 |
122 } // namespace skia | 124 } // namespace skia |
123 | 125 |
124 #endif // SKIA_EXT_BITMAP_PLATFORM_DEVICE_CAIRO_H_ | 126 #endif // SKIA_EXT_BITMAP_PLATFORM_DEVICE_CAIRO_H_ |
OLD | NEW |