| 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 PlatformCanvasLinux_h | 5 #ifndef SKIA_EXT_PLATFORM_CANVAS_LINUX_H_ |
| 6 #define PlatformCanvasLinux_h | 6 #define SKIA_EXT_PLATFORM_CANVAS_LINUX_H_ |
| 7 | 7 |
| 8 #include "PlatformDeviceLinux.h" | 8 #include "PlatformDeviceLinux.h" |
| 9 | 9 |
| 10 namespace gfx { | 10 namespace gfx { |
| 11 | 11 |
| 12 // This class is a specialization of the regular SkCanvas that is designed to | 12 // This class is a specialization of the regular SkCanvas that is designed to |
| 13 // work with a gfx::PlatformDevice to manage platform-specific drawing. It | 13 // work with a gfx::PlatformDevice to manage platform-specific drawing. It |
| 14 // allows using both Skia operations and platform-specific operations. | 14 // allows using both Skia operations and platform-specific operations. |
| 15 class PlatformCanvasLinux : public SkCanvas { | 15 class PlatformCanvasLinux : public SkCanvas { |
| 16 public: | 16 public: |
| (...skipping 25 matching lines...) Expand all Loading... |
| 42 // BitmapPlatformDevice object. Can be overridden to change the object type. | 42 // BitmapPlatformDevice object. Can be overridden to change the object type. |
| 43 virtual SkDevice* createPlatformDevice(int width, int height, bool is_opaque); | 43 virtual SkDevice* createPlatformDevice(int width, int height, bool is_opaque); |
| 44 | 44 |
| 45 // Disallow copy and assign. | 45 // Disallow copy and assign. |
| 46 PlatformCanvasLinux(const PlatformCanvasLinux&); | 46 PlatformCanvasLinux(const PlatformCanvasLinux&); |
| 47 PlatformCanvasLinux& operator=(const PlatformCanvasLinux&); | 47 PlatformCanvasLinux& operator=(const PlatformCanvasLinux&); |
| 48 }; | 48 }; |
| 49 | 49 |
| 50 } // namespace gfx | 50 } // namespace gfx |
| 51 | 51 |
| 52 #endif // PlatformCanvasLinux_h | 52 #endif // SKIA_EXT_PLATFORM_CANVAS_LINUX_H_ |
| OLD | NEW |