| OLD | NEW |
| 1 | 1 |
| 2 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 2 // Copyright (c) 2009 The Chromium Authors. All rights reserved. |
| 3 // Use of this source code is governed by a BSD-style license that can be | 3 // Use of this source code is governed by a BSD-style license that can be |
| 4 // found in the LICENSE file. | 4 // found in the LICENSE file. |
| 5 | 5 |
| 6 #ifndef SKIA_EXT_CANVAS_PAINT_LINUX_H_ | 6 #ifndef SKIA_EXT_CANVAS_PAINT_LINUX_H_ |
| 7 #define SKIA_EXT_CANVAS_PAINT_LINUX_H_ | 7 #define SKIA_EXT_CANVAS_PAINT_LINUX_H_ |
| 8 | 8 |
| 9 #include "skia/ext/platform_canvas.h" | 9 #include "skia/ext/platform_canvas.h" |
| 10 | 10 |
| 11 #include <gdk/gdk.h> |
| 12 |
| 11 namespace skia { | 13 namespace skia { |
| 12 | 14 |
| 13 // A class designed to translate skia painting into a region in a | 15 // A class designed to translate skia painting into a region in a |
| 14 // GdkWindow. This class has been adapted from the class with the same name in | 16 // GdkWindow. This class has been adapted from the class with the same name in |
| 15 // platform_canvas_win.h. On construction, it will set up a context for | 17 // platform_canvas_win.h. On construction, it will set up a context for |
| 16 // painting into, and on destruction, it will commit it to the GdkWindow. | 18 // painting into, and on destruction, it will commit it to the GdkWindow. |
| 17 template <class T> | 19 template <class T> |
| 18 class CanvasPaintT : public T { | 20 class CanvasPaintT : public T { |
| 19 public: | 21 public: |
| 20 // This constructor assumes the result is opaque. | 22 // This constructor assumes the result is opaque. |
| (...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 90 // Disallow copy and assign. | 92 // Disallow copy and assign. |
| 91 CanvasPaintT(const CanvasPaintT&); | 93 CanvasPaintT(const CanvasPaintT&); |
| 92 CanvasPaintT& operator=(const CanvasPaintT&); | 94 CanvasPaintT& operator=(const CanvasPaintT&); |
| 93 }; | 95 }; |
| 94 | 96 |
| 95 typedef CanvasPaintT<PlatformCanvas> PlatformCanvasPaint; | 97 typedef CanvasPaintT<PlatformCanvas> PlatformCanvasPaint; |
| 96 | 98 |
| 97 } // namespace skia | 99 } // namespace skia |
| 98 | 100 |
| 99 #endif // SKIA_EXT_CANVAS_PAINT_LINUX_H_ | 101 #endif // SKIA_EXT_CANVAS_PAINT_LINUX_H_ |
| OLD | NEW |