| 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 998 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1009 if (m_isAcceleratedCompositingActive == active) | 1009 if (m_isAcceleratedCompositingActive == active) |
| 1010 return; | 1010 return; |
| 1011 | 1011 |
| 1012 if (!m_client) | 1012 if (!m_client) |
| 1013 return; | 1013 return; |
| 1014 | 1014 |
| 1015 if (active) { | 1015 if (active) { |
| 1016 TRACE_EVENT0("blink", "WebViewImpl::setIsAcceleratedCompositingActive(tr
ue)"); | 1016 TRACE_EVENT0("blink", "WebViewImpl::setIsAcceleratedCompositingActive(tr
ue)"); |
| 1017 m_layerTreeView->setRootLayer(*m_rootLayer); | 1017 m_layerTreeView->setRootLayer(*m_rootLayer); |
| 1018 | 1018 |
| 1019 bool visible = page()->visibilityState() == PageVisibilityStateVisible; | 1019 m_layerTreeView->setVisible(page()->isPageVisible()); |
| 1020 m_layerTreeView->setVisible(visible); | |
| 1021 updateLayerTreeDeviceScaleFactor(); | 1020 updateLayerTreeDeviceScaleFactor(); |
| 1022 updateLayerTreeBackgroundColor(); | 1021 updateLayerTreeBackgroundColor(); |
| 1023 m_layerTreeView->setHasTransparentBackground(isTransparent()); | 1022 m_layerTreeView->setHasTransparentBackground(isTransparent()); |
| 1024 updateLayerTreeViewport(); | 1023 updateLayerTreeViewport(); |
| 1025 m_isAcceleratedCompositingActive = true; | 1024 m_isAcceleratedCompositingActive = true; |
| 1026 } | 1025 } |
| 1027 } | 1026 } |
| 1028 | 1027 |
| 1029 PaintLayerCompositor* WebFrameWidgetImpl::compositor() const | 1028 PaintLayerCompositor* WebFrameWidgetImpl::compositor() const |
| 1030 { | 1029 { |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1083 | 1082 |
| 1084 HitTestResult WebFrameWidgetImpl::hitTestResultForRootFramePos(const IntPoint& p
osInRootFrame) | 1083 HitTestResult WebFrameWidgetImpl::hitTestResultForRootFramePos(const IntPoint& p
osInRootFrame) |
| 1085 { | 1084 { |
| 1086 IntPoint docPoint(m_localRoot->frame()->view()->rootFrameToContents(posInRoo
tFrame)); | 1085 IntPoint docPoint(m_localRoot->frame()->view()->rootFrameToContents(posInRoo
tFrame)); |
| 1087 HitTestResult result = m_localRoot->frame()->eventHandler().hitTestResultAtP
oint(docPoint, HitTestRequest::ReadOnly | HitTestRequest::Active); | 1086 HitTestResult result = m_localRoot->frame()->eventHandler().hitTestResultAtP
oint(docPoint, HitTestRequest::ReadOnly | HitTestRequest::Active); |
| 1088 result.setToShadowHostIfInUserAgentShadowRoot(); | 1087 result.setToShadowHostIfInUserAgentShadowRoot(); |
| 1089 return result; | 1088 return result; |
| 1090 } | 1089 } |
| 1091 | 1090 |
| 1092 } // namespace blink | 1091 } // namespace blink |
| OLD | NEW |