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 SKIA_EXT_BITMAP_PLATFORM_DEVICE_LINUX_H_ | 5 #ifndef SKIA_EXT_BITMAP_PLATFORM_DEVICE_LINUX_H_ |
6 #define SKIA_EXT_BITMAP_PLATFORM_DEVICE_LINUX_H_ | 6 #define SKIA_EXT_BITMAP_PLATFORM_DEVICE_LINUX_H_ |
7 | 7 |
8 #include "base/ref_counted.h" | 8 #include "base/ref_counted.h" |
9 #include "skia/ext/platform_device_linux.h" | 9 #include "skia/ext/platform_device_linux.h" |
10 | 10 |
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
78 BitmapPlatformDeviceLinuxData* data); | 78 BitmapPlatformDeviceLinuxData* data); |
79 virtual ~BitmapPlatformDeviceLinux(); | 79 virtual ~BitmapPlatformDeviceLinux(); |
80 BitmapPlatformDeviceLinux& operator=(const BitmapPlatformDeviceLinux& other); | 80 BitmapPlatformDeviceLinux& operator=(const BitmapPlatformDeviceLinux& other); |
81 | 81 |
82 // A stub copy constructor. Needs to be properly implemented. | 82 // A stub copy constructor. Needs to be properly implemented. |
83 BitmapPlatformDeviceLinux(const BitmapPlatformDeviceLinux& other); | 83 BitmapPlatformDeviceLinux(const BitmapPlatformDeviceLinux& other); |
84 | 84 |
85 // Bitmaps aren't vector graphics. | 85 // Bitmaps aren't vector graphics. |
86 virtual bool IsVectorial() { return false; } | 86 virtual bool IsVectorial() { return false; } |
87 | 87 |
| 88 // If someone wants to paint on a Cairo surface version of our |
| 89 // buffer, then give them the surface we're already using. |
| 90 virtual cairo_surface_t* beginPlatformPaint() { return surface(); } |
| 91 |
88 cairo_surface_t* surface() const; | 92 cairo_surface_t* surface() const; |
89 | 93 |
90 private: | 94 private: |
91 scoped_refptr<BitmapPlatformDeviceLinuxData> data_; | 95 scoped_refptr<BitmapPlatformDeviceLinuxData> data_; |
92 }; | 96 }; |
93 | 97 |
94 } // namespace skia | 98 } // namespace skia |
95 | 99 |
96 #endif // SKIA_EXT_BITMAP_PLATFORM_DEVICE_LINUX_H_ | 100 #endif // SKIA_EXT_BITMAP_PLATFORM_DEVICE_LINUX_H_ |
OLD | NEW |