| 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 BASE_GFX_BITMAP_PLATFORM_DEVICE_LINUX_H_ | 5 #ifndef BASE_GFX_BITMAP_PLATFORM_DEVICE_LINUX_H_ |
| 6 #define BASE_GFX_BITMAP_PLATFORM_DEVICE_LINUX_H_ | 6 #define BASE_GFX_BITMAP_PLATFORM_DEVICE_LINUX_H_ |
| 7 | 7 |
| 8 #include "base/gfx/platform_device_linux.h" | 8 #include "base/gfx/platform_device_linux.h" |
| 9 #include "base/ref_counted.h" | 9 #include "base/ref_counted.h" |
| 10 | 10 |
| 11 namespace gfx { | 11 namespace gfx { |
| 12 | 12 |
| 13 // I'm trying to get away with defining as little as possible on this. Right | 13 // I'm trying to get away with defining as little as possible on this. Right |
| 14 // now, we don't do anything. | 14 // now, we don't do anything. |
| 15 class BitmapPlatformDeviceLinux : public PlatformDeviceLinux { | 15 class BitmapPlatformDeviceLinux : public PlatformDeviceLinux { |
| 16 public: | 16 public: |
| 17 /// Static constructor. I don't understand this, it's just a copy of the mac | 17 /// Static constructor. I don't understand this, it's just a copy of the mac |
| 18 static BitmapPlatformDeviceLinux* Create(int width, int height, | 18 static BitmapPlatformDeviceLinux* Create(int width, int height, |
| 19 bool is_opaque); | 19 bool is_opaque); |
| 20 | 20 |
| 21 /// Create a BitmapPlatformDeviceLinux from an already constructed bitmap; | 21 /// Create a BitmapPlatformDeviceLinux from an already constructed bitmap; |
| 22 /// you should probably be using Create(). This may become private later if | 22 /// you should probably be using Create(). This may become private later if |
| 23 /// we ever have to share state between some native drawing UI and Skia, like | 23 /// we ever have to share state between some native drawing UI and Skia, like |
| 24 /// the Windows and Mac versions of this class do. | 24 /// the Windows and Mac versions of this class do. |
| 25 BitmapPlatformDeviceLinux(const SkBitmap& other); | 25 BitmapPlatformDeviceLinux(const SkBitmap& other); |
| 26 virtual ~BitmapPlatformDeviceLinux(); | 26 virtual ~BitmapPlatformDeviceLinux(); |
| 27 |
| 28 // A stub copy constructor. Needs to be properly implemented. |
| 29 BitmapPlatformDeviceLinux(const BitmapPlatformDeviceLinux& other); |
| 27 }; | 30 }; |
| 28 | 31 |
| 29 } // namespace gfx | 32 } // namespace gfx |
| 30 | 33 |
| 31 #endif // BASE_GFX_BITMAP_PLATFORM_DEVICE_LINUX_H_ | 34 #endif // BASE_GFX_BITMAP_PLATFORM_DEVICE_LINUX_H_ |
| OLD | NEW |