summaryrefslogtreecommitdiffstats
path: root/views/widget/native_widget_delegate.h
diff options
context:
space:
mode:
Diffstat (limited to 'views/widget/native_widget_delegate.h')
-rw-r--r--views/widget/native_widget_delegate.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/views/widget/native_widget_delegate.h b/views/widget/native_widget_delegate.h
index e14e32b..b21cd10 100644
--- a/views/widget/native_widget_delegate.h
+++ b/views/widget/native_widget_delegate.h
@@ -7,6 +7,7 @@
#pragma once
namespace gfx {
+class Canvas;
class Size;
}
@@ -35,6 +36,10 @@ class NativeWidgetDelegate {
// Returns true if the delegate has a FocusManager.
virtual bool HasFocusManager() const = 0;
+
+ // Paints the rootview in the canvas. This will also refresh the compositor
+ // tree if necessary when accelerated painting is enabled.
+ virtual void OnPaint(gfx::Canvas* canvas) = 0;
};
} // namespace internal