DescriptionCreate an AcceleratedWidgetMac
Split BrowserCompositorCALayerTreeMac into two parts. One part is the
ui::Compositor bits of the structure, and the other is the
AcceleratedWidgetMac which has the gfx::AcceleratedWidget bits of the
structure.
Update BrowserCompositorViewMac to explicitly hold these two parts, the
ui::Compositor and the AcceleratedWidgetMac, and rename it to
BrowserCompositorMac.
Make AcceleratedWidgetMacNSView provide the link to bind an
AcceleratedWidgetMac to draw the contents of an NSView. An
AcceleratedWidgetMac may be bound to multiple NSViews in sequence.
Update the recycling mechanism of BrowserCompositorMac to use this
binding mechanism.
Remove some of the few dependencies that AcceleratedWidgetMac would have
on content by making the callers for GotAcceleratedFrame specify a
callback for when the frame displays (in addition to the callback that
the client has, as the client may be far away from the caller).
The next steps after this are to move the AcceleratedWidgetMac to ui,
and then to typedef ui::AcceleratedWidgetMac* to gfx::AcceleratedWidget
for Mac.
BUG=424058
Committed: https://crrev.com/b9f5521acd4912794b6e3040dc5c9a59d0013f04
Cr-Commit-Position: refs/heads/master@{#305188}
Patch Set 1 #
Total comments: 7
Patch Set 2 : Chnage names from client to NSView #
Total comments: 14
Patch Set 3 : Incorporate review feedback #
Total comments: 11
Patch Set 4 : Incorporate review feedback #Patch Set 5 : Fix compile #Messages
Total messages: 17 (5 generated)
|