[Webkit-unassigned] [Bug 46991] Flickering with div compositing using CAOpenGLLayer in non-out-of-process plugin

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Oct 5 14:19:34 PDT 2010


https://bugs.webkit.org/show_bug.cgi?id=46991


Simon Fraser (smfr) <simon.fraser at apple.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |INVALID




--- Comment #9 from Simon Fraser (smfr) <simon.fraser at apple.com>  2010-10-05 14:19:33 PST ---
It flickers because the 'contents' property of your layer is getting animated by CoreAnimation (when the layer hierarchy changes).

You can easily fix this in the plugin:


--- main copy.m    2010-10-05 14:08:48.000000000 -0700
+++ main.m    2010-10-05 14:17:35.000000000 -0700
@@ -287,6 +287,11 @@
         case NPPVpluginCoreAnimationLayer:
             if (!obj->layer) {
                 obj->layer = [[[MyLayer alloc] init] retain];
+                
+                NSDictionary *actions = [NSDictionary dictionaryWithObjectsAndKeys:
+                                   [NSNull null], @"contents",
+                                   nil];
+                [obj->layer setActions:actions];
             }

             // Make sure to return a retained layer

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list