The BlackBerry port will use accelerated compositing code path to render the root layer in some situation. The plan is to do this by activating the forceCompositingMode() setting, but that in itself doesn't accomplish anything, since painting will still go to window for the root layer. Thus a special clause in RenderLayerBacking::paintingGoesToWindow() will be added for PLATFORM(BLACKBERRY).
The force compositing setting was introduced in bug #56156
Created attachment 135533 [details] Patch
Perhaps this is something the Chromium team is interested in, I'm not sure why they originally added the "force compositing" setting. Perhaps in the future, this can be a cross-platform mechanism rather than a PLATFORM(BLACKBERRY) ifdef?
Created attachment 135541 [details] Patch
(In reply to comment #4) > Created an attachment (id=135541) [details] > Patch Renamed the new method to "inForcedCompositingMode()" to match the existing "inCompositingMode()" method.
In Chromium we paint root contents to the "window" and handle that externally to WebCore.
(In reply to comment #6) > In Chromium we paint root contents to the "window" and handle that externally to WebCore. Are you saying you have concerns with the approach in this patch?
(In reply to comment #7) > (In reply to comment #6) > > In Chromium we paint root contents to the "window" and handle that externally to WebCore. > > Are you saying you have concerns with the approach in this patch? I don't think so - I added them to the bug's CC list since I was curious about what Chromium uses the "force compositing" setting for when it doesn't really do anything out of the box (since painting still goes to the window according to James' comment above.) If they are interested in this here feature (forcing root layer painting to go to layer instead of window) perhaps we can break it out into a separate setting in the future.
Comment on attachment 135541 [details] Patch LGTM.
Comment on attachment 135541 [details] Patch Clearing flags on attachment: 135541 Committed r113326: <http://trac.webkit.org/changeset/113326>
All reviewed patches have been landed. Closing bug.