Bug 146827

Summary: [GTK] Accelerated compositing is enabled by MiniBrowser in Wayland
Product: WebKit Reporter: ChangSeok Oh <changseok>
Component: WebKitGTKAssignee: ChangSeok Oh <changseok>
Status: RESOLVED FIXED    
Severity: Normal CC: berto, cgarcia, commit-queue, gustavo, mcatanzaro, mrobinson, pochu27, zan
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch
none
Patch
none
Patch none

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.