| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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 APP_GFX_CANVAS_PAINT_H_ | 5 #ifndef APP_GFX_CANVAS_PAINT_H_ |
| 6 #define APP_GFX_CANVAS_PAINT_H_ | 6 #define APP_GFX_CANVAS_PAINT_H_ |
| 7 | 7 |
| 8 #include "app/gfx/canvas.h" | 8 #include "app/gfx/canvas.h" |
| 9 #include "skia/ext/canvas_paint.h" | 9 #include "skia/ext/canvas_paint.h" |
| 10 | 10 |
| 11 // Define a skia::CanvasPaint type that wraps our gfx::Canvas like the | 11 // Define a skia::CanvasPaint type that wraps our gfx::Canvas like the |
| 12 // skia::PlatformCanvasPaint wraps PlatformCanvas. | 12 // skia::PlatformCanvasPaint wraps PlatformCanvas. |
| 13 | 13 |
| 14 namespace gfx { | 14 namespace gfx { |
| 15 | 15 |
| 16 #if defined(OS_WIN) || defined(OS_LINUX) | |
| 17 typedef skia::CanvasPaintT<Canvas> CanvasPaint; | 16 typedef skia::CanvasPaintT<Canvas> CanvasPaint; |
| 18 #endif | |
| 19 | 17 |
| 20 } // namespace gfx | 18 } // namespace gfx |
| 21 | 19 |
| 22 #endif // APP_GFX_CANVAS_PAINT_H_ | 20 #endif // APP_GFX_CANVAS_PAINT_H_ |
| OLD | NEW |