| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2014 Google Inc. All rights reserved. | 2 * Copyright (C) 2014 Google Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
| 6 * met: | 6 * met: |
| 7 * | 7 * |
| 8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
| (...skipping 393 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 404 void WebFrameWidgetImpl::scheduleAnimation() | 404 void WebFrameWidgetImpl::scheduleAnimation() |
| 405 { | 405 { |
| 406 if (m_layerTreeView) { | 406 if (m_layerTreeView) { |
| 407 m_layerTreeView->setNeedsBeginFrame(); | 407 m_layerTreeView->setNeedsBeginFrame(); |
| 408 return; | 408 return; |
| 409 } | 409 } |
| 410 if (m_client) | 410 if (m_client) |
| 411 m_client->scheduleAnimation(); | 411 m_client->scheduleAnimation(); |
| 412 } | 412 } |
| 413 | 413 |
| 414 CompositorProxyClient* WebFrameWidgetImpl::createCompositorProxyClient() | 414 CompositorProxyClient* WebFrameWidgetImpl::createCompositorProxyClient(WorkerCli
ents& clients) |
| 415 { | 415 { |
| 416 if (!m_mutator) { | 416 if (!m_mutator) { |
| 417 std::unique_ptr<CompositorMutatorClient> mutatorClient = CompositorMutat
orImpl::createClient(); | 417 std::unique_ptr<CompositorMutatorClient> mutatorClient = CompositorMutat
orImpl::createClient(); |
| 418 m_mutator = static_cast<CompositorMutatorImpl*>(mutatorClient->mutator()
); | 418 m_mutator = static_cast<CompositorMutatorImpl*>(mutatorClient->mutator()
); |
| 419 m_layerTreeView->setMutatorClient(std::move(mutatorClient)); | 419 m_layerTreeView->setMutatorClient(std::move(mutatorClient)); |
| 420 } | 420 } |
| 421 return new CompositorProxyClientImpl(m_mutator); | 421 return new CompositorProxyClientImpl(m_mutator, clients); |
| 422 } | 422 } |
| 423 | 423 |
| 424 void WebFrameWidgetImpl::applyViewportDeltas( | 424 void WebFrameWidgetImpl::applyViewportDeltas( |
| 425 const WebFloatSize& visualViewportDelta, | 425 const WebFloatSize& visualViewportDelta, |
| 426 const WebFloatSize& mainFrameDelta, | 426 const WebFloatSize& mainFrameDelta, |
| 427 const WebFloatSize& elasticOverscrollDelta, | 427 const WebFloatSize& elasticOverscrollDelta, |
| 428 float pageScaleDelta, | 428 float pageScaleDelta, |
| 429 float topControlsDelta) | 429 float topControlsDelta) |
| 430 { | 430 { |
| 431 // FIXME: To be implemented. | 431 // FIXME: To be implemented. |
| (...skipping 686 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1118 | 1118 |
| 1119 HitTestResult WebFrameWidgetImpl::hitTestResultForRootFramePos(const IntPoint& p
osInRootFrame) | 1119 HitTestResult WebFrameWidgetImpl::hitTestResultForRootFramePos(const IntPoint& p
osInRootFrame) |
| 1120 { | 1120 { |
| 1121 IntPoint docPoint(m_localRoot->frame()->view()->rootFrameToContents(posInRoo
tFrame)); | 1121 IntPoint docPoint(m_localRoot->frame()->view()->rootFrameToContents(posInRoo
tFrame)); |
| 1122 HitTestResult result = m_localRoot->frame()->eventHandler().hitTestResultAtP
oint(docPoint, HitTestRequest::ReadOnly | HitTestRequest::Active); | 1122 HitTestResult result = m_localRoot->frame()->eventHandler().hitTestResultAtP
oint(docPoint, HitTestRequest::ReadOnly | HitTestRequest::Active); |
| 1123 result.setToShadowHostIfInUserAgentShadowRoot(); | 1123 result.setToShadowHostIfInUserAgentShadowRoot(); |
| 1124 return result; | 1124 return result; |
| 1125 } | 1125 } |
| 1126 | 1126 |
| 1127 } // namespace blink | 1127 } // namespace blink |
| OLD | NEW |