Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(906)

Unified Diff: ui/views/painter.h

Issue 14921006: Fix LabelButtonBorder image blending. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Use a skia::RefPtr to free the SkXfermode after use. Created 7 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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);
};

Powered by Google App Engine
This is Rietveld 408576698