Chromium Code Reviews| Index: ui/views/painter.h |
| diff --git a/ui/views/painter.h b/ui/views/painter.h |
| index c0ff443d3ac57433f48deb672d9bde7ba0483214..06155b6174e08f789a7144b2924a87e51f756d5c 100644 |
| --- a/ui/views/painter.h |
| +++ b/ui/views/painter.h |
| @@ -8,6 +8,7 @@ |
| #include "base/basictypes.h" |
| #include "base/compiler_specific.h" |
| #include "third_party/skia/include/core/SkColor.h" |
| +#include "third_party/skia/include/core/SkPaint.h" |
| #include "ui/views/views_export.h" |
| namespace gfx { |
| @@ -72,6 +73,11 @@ class VIEWS_EXPORT Painter { |
| // Paints the painter in the specified region. |
| virtual void Paint(gfx::Canvas* canvas, const gfx::Size& size) = 0; |
| + // Paint with custom SkPaint options; supported by a limited set of painters. |
| + virtual void PaintWithSkPaint(gfx::Canvas* canvas, |
|
sky
2013/06/13 16:22:04
Do we really need this?
msw
2013/06/13 17:29:49
The only alternative I see is exposing ImagePainte
|
| + const gfx::Size& size, |
| + const SkPaint& paint); |
| + |
| private: |
| DISALLOW_COPY_AND_ASSIGN(Painter); |
| }; |