12013-05-27 Iago Toral Quiroga <itoral@igalia.com>
2
3 Use Cairo implementation of the WidgetBackingStore instead of X11 when running on Wayland
4 https://bugs.webkit.org/show_bug.cgi?id=116717
5
6 Reviewed by NOBODY (OOPS!).
7
8 Refactored WidgetBackingStore to be an abstract base class. Make
9 GtkWidgetBackingStoreX11 and WidgetBackingStoreCairo inherit from it.
10 Make WidgetBackingStore::create decide which implementation to use
11 at run-time. For GTK it will use Cairo when running on Wayland and X11
12 otherwise. For other platforms will use Cairo in all cases.
13
14 * GNUmakefile.list.am:
15 * PlatformEfl.cmake:
16 * PlatformGTK.cmake:
17 * platform/cairo/WidgetBackingStore.cpp: Added.
18 (WebCore):
19 (WebCore::WidgetBackingStore::create):
20 * platform/cairo/WidgetBackingStore.h:
21 (WebCore):
22 (WidgetBackingStore):
23 (WebCore::WidgetBackingStore::WidgetBackingStore):
24 (WebCore::WidgetBackingStore::~WidgetBackingStore):
25 * platform/cairo/WidgetBackingStoreCairo.cpp:
26 (WebCore::WidgetBackingStoreCairo::create):
27 (WebCore::WidgetBackingStoreCairo::WidgetBackingStoreCairo):
28 (WebCore::WidgetBackingStoreCairo::~WidgetBackingStoreCairo):
29 (WebCore::WidgetBackingStoreCairo::cairoSurface):
30 (WebCore::WidgetBackingStoreCairo::scroll):
31 * platform/cairo/WidgetBackingStoreCairo.h: Added.
32 (WebCore):
33 (WidgetBackingStoreCairo):
34 * platform/gtk/GtkWidgetBackingStoreX11.cpp:
35 (WebCore::GtkWidgetBackingStoreX11::create):
36 (WebCore::GtkWidgetBackingStoreX11::GtkWidgetBackingStoreX11):
37 (WebCore::GtkWidgetBackingStoreX11::~GtkWidgetBackingStoreX11):
38 (WebCore::GtkWidgetBackingStoreX11::cairoSurface):
39 (WebCore::GtkWidgetBackingStoreX11::scroll):
40 * platform/gtk/GtkWidgetBackingStoreX11.h: Added.
41 (WebCore):
42 (GtkWidgetBackingStoreX11):
43