Bug 146827 - [GTK] Accelerated compositing is enabled by MiniBrowser in Wayland
Summary: [GTK] Accelerated compositing is enabled by MiniBrowser in Wayland
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKitGTK (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: ChangSeok Oh
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-07-10 01:18 PDT by ChangSeok Oh
Modified: 2015-07-15 06:35 PDT (History)
8 users (show)

See Also:


Attachments
Patch (2.17 KB, patch)
2015-07-10 01:33 PDT, ChangSeok Oh
no flags Details | Formatted Diff | Diff
Patch (3.42 KB, patch)
2015-07-13 01:54 PDT, ChangSeok Oh
no flags Details | Formatted Diff | Diff
Patch (3.45 KB, patch)
2015-07-13 02:04 PDT, ChangSeok Oh
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description ChangSeok Oh 2015-07-10 01:18:46 PDT
SSIA
Comment 1 ChangSeok Oh 2015-07-10 01:33:05 PDT
Created attachment 256569 [details]
Patch
Comment 2 Carlos Garcia Campos 2015-07-10 03:01:06 PDT
Comment on attachment 256569 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=256569&action=review

> Source/WebKit2/UIProcess/gtk/WebPreferencesGtk.cpp:46
> +#if PLATFORM(WAYLAND)
> +    // FIXME: Accelerated compositing under Wayland is not yet supported.
> +    // https://bugs.webkit.org/show_bug.cgi?id=115803
> +    GdkDisplay* display = gdk_display_manager_get_default_display(gdk_display_manager_get());
> +    if (GDK_IS_WAYLAND_DISPLAY(display))
> +        setAcceleratedCompositingEnabled(false);
> +#endif

I think this could be simplified using PlatformDisplay::sharedDisplay().type() == PlatformDisplay::Type::Wayland. So, can we move this here instead of duplicating it? or do we really need it in both places?
Comment 3 ChangSeok Oh 2015-07-13 01:54:28 PDT
Created attachment 256691 [details]
Patch
Comment 4 WebKit Commit Bot 2015-07-13 01:57:20 PDT
Thanks for the patch. If this patch contains new public API please make sure it follows the guidelines for new WebKit2 GTK+ API. See http://trac.webkit.org/wiki/WebKitGTK/AddingNewWebKit2API
Comment 5 ChangSeok Oh 2015-07-13 01:58:39 PDT
Comment on attachment 256569 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=256569&action=review

>> Source/WebKit2/UIProcess/gtk/WebPreferencesGtk.cpp:46
>> +#endif
> 
> I think this could be simplified using PlatformDisplay::sharedDisplay().type() == PlatformDisplay::Type::Wayland. So, can we move this here instead of duplicating it? or do we really need it in both places?

Oh. You're right. I saw this bug in webkitgtk.2.8.3 so I didn't know the PlatformDisplay. I think moving the disabling code here is enough. =)
Comment 6 ChangSeok Oh 2015-07-13 02:04:01 PDT
Created attachment 256692 [details]
Patch
Comment 7 WebKit Commit Bot 2015-07-15 06:35:32 PDT
Comment on attachment 256692 [details]
Patch

Clearing flags on attachment: 256692

Committed r186835: <http://trac.webkit.org/changeset/186835>
Comment 8 WebKit Commit Bot 2015-07-15 06:35:35 PDT
All reviewed patches have been landed.  Closing bug.