summaryrefslogtreecommitdiff
path: root/chromium/ui/views/painter.h
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/ui/views/painter.h')
-rw-r--r--chromium/ui/views/painter.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/chromium/ui/views/painter.h b/chromium/ui/views/painter.h
index 57b4fb0a132..cd9672304d8 100644
--- a/chromium/ui/views/painter.h
+++ b/chromium/ui/views/painter.h
@@ -24,6 +24,10 @@ class Rect;
class Size;
}
+namespace ui {
+class LayerOwner;
+}
+
namespace views {
class View;
@@ -89,6 +93,10 @@ class VIEWS_EXPORT Painter {
int thickness,
const gfx::InsetsF& insets);
+ // Creates and returns a texture layer that is painted by |painter|.
+ static std::unique_ptr<ui::LayerOwner> CreatePaintedLayer(
+ std::unique_ptr<Painter> painter);
+
// Returns the minimum size this painter can paint without obvious graphical
// problems (e.g. overlapping images).
virtual gfx::Size GetMinimumSize() const = 0;