From c36b0bfba80a88ce3776739575a1103235c409d1 Mon Sep 17 00:00:00 2001 From: "sky@chromium.org" Date: Tue, 10 May 2011 18:26:25 +0000 Subject: Tweaks Compositor API. To make it possible to land this I've ifdef'd the code in a couple of places. BUG=none TEST=none R=ben@chromium.org,wjmaclean@chromium.org,rjkroege@chromium.org Review URL: http://codereview.chromium.org/6999005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@84823 0039d316-1c4b-4281-b951-d872f2087c98 --- views/widget/native_widget_delegate.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'views/widget/native_widget_delegate.h') diff --git a/views/widget/native_widget_delegate.h b/views/widget/native_widget_delegate.h index 0ac5e09..036bb48 100644 --- a/views/widget/native_widget_delegate.h +++ b/views/widget/native_widget_delegate.h @@ -37,6 +37,11 @@ class NativeWidgetDelegate { // Returns true if the delegate has a FocusManager. virtual bool HasFocusManager() const = 0; + // Paints the widget using acceleration. If the widget is not using + // accelerated painting this returns false and does nothing. + virtual bool OnNativeWidgetPaintAccelerated( + const gfx::Rect& dirty_region) = 0; + // Paints the rootview in the canvas. This will also refresh the compositor // tree if necessary when accelerated painting is enabled. virtual void OnNativeWidgetPaint(gfx::Canvas* canvas) = 0; -- cgit v1.1