|
Lines 55-61
CoordinatedDrawingAreaProxy::CoordinatedDrawingAreaProxy(WebPageProxy& webPagePr
a/Source/WebKit2/UIProcess/CoordinatedGraphics/CoordinatedDrawingAreaProxy.cpp_sec1
|
| 55 |
{ |
55 |
{ |
| 56 |
// Construct the proxy early to allow messages to be sent to the web process while AC is entered there. |
56 |
// Construct the proxy early to allow messages to be sent to the web process while AC is entered there. |
| 57 |
if (webPageProxy.pageGroup().preferences().forceCompositingMode()) |
57 |
if (webPageProxy.pageGroup().preferences().forceCompositingMode()) |
| 58 |
m_coordinatedLayerTreeHostProxy = adoptPtr(new CoordinatedLayerTreeHostProxy(this)); |
58 |
m_coordinatedLayerTreeHostProxy = std::make_unique<CoordinatedLayerTreeHostProxy>(this); |
| 59 |
} |
59 |
} |
| 60 |
|
60 |
|
| 61 |
CoordinatedDrawingAreaProxy::~CoordinatedDrawingAreaProxy() |
61 |
CoordinatedDrawingAreaProxy::~CoordinatedDrawingAreaProxy() |
|
Lines 324-330
void CoordinatedDrawingAreaProxy::enterAcceleratedCompositingMode(const LayerTre
a/Source/WebKit2/UIProcess/CoordinatedGraphics/CoordinatedDrawingAreaProxy.cpp_sec2
|
| 324 |
m_layerTreeContext = layerTreeContext; |
324 |
m_layerTreeContext = layerTreeContext; |
| 325 |
m_webPageProxy.enterAcceleratedCompositingMode(layerTreeContext); |
325 |
m_webPageProxy.enterAcceleratedCompositingMode(layerTreeContext); |
| 326 |
if (!m_coordinatedLayerTreeHostProxy) |
326 |
if (!m_coordinatedLayerTreeHostProxy) |
| 327 |
m_coordinatedLayerTreeHostProxy = adoptPtr(new CoordinatedLayerTreeHostProxy(this)); |
327 |
m_coordinatedLayerTreeHostProxy = std::make_unique<CoordinatedLayerTreeHostProxy>(this); |
| 328 |
} |
328 |
} |
| 329 |
|
329 |
|
| 330 |
void CoordinatedDrawingAreaProxy::setVisibleContentsRect(const WebCore::FloatRect& visibleContentsRect, const WebCore::FloatPoint& trajectoryVector) |
330 |
void CoordinatedDrawingAreaProxy::setVisibleContentsRect(const WebCore::FloatRect& visibleContentsRect, const WebCore::FloatPoint& trajectoryVector) |