OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 GFX_CANVAS_H_ | 5 #ifndef GFX_CANVAS_H_ |
6 #define GFX_CANVAS_H_ | 6 #define GFX_CANVAS_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 | 10 |
11 #include "gfx/brush.h" | |
12 #include "gfx/native_widget_types.h" | 11 #include "gfx/native_widget_types.h" |
13 // TODO(beng): remove this include when we no longer depend on SkTypes. | 12 // TODO(beng): remove this include when we no longer depend on SkTypes. |
14 #include "skia/ext/platform_canvas.h" | 13 #include "skia/ext/platform_canvas.h" |
15 | 14 |
16 namespace gfx { | 15 namespace gfx { |
17 | 16 |
18 class Brush; | 17 class Brush; |
19 class CanvasSkia; | 18 class CanvasSkia; |
20 class Font; | 19 class Font; |
21 class Point; | 20 class Point; |
(...skipping 248 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
270 // Returns the rectangle that is invalid. | 269 // Returns the rectangle that is invalid. |
271 virtual gfx::Rect GetInvalidRect() const = 0; | 270 virtual gfx::Rect GetInvalidRect() const = 0; |
272 | 271 |
273 // Returns the underlying Canvas. | 272 // Returns the underlying Canvas. |
274 virtual Canvas* AsCanvas() = 0; | 273 virtual Canvas* AsCanvas() = 0; |
275 }; | 274 }; |
276 | 275 |
277 } // namespace gfx; | 276 } // namespace gfx; |
278 | 277 |
279 #endif // GFX_CANVAS_H_ | 278 #endif // GFX_CANVAS_H_ |
OLD | NEW |