| 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 274 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 285 float deviceScaleFactor = page()->deviceScaleFactor(); | 285 float deviceScaleFactor = page()->deviceScaleFactor(); |
| 286 m_layerTreeView->setDeviceScaleFactor(deviceScaleFactor); | 286 m_layerTreeView->setDeviceScaleFactor(deviceScaleFactor); |
| 287 } | 287 } |
| 288 | 288 |
| 289 bool WebFrameWidgetImpl::isTransparent() const | 289 bool WebFrameWidgetImpl::isTransparent() const |
| 290 { | 290 { |
| 291 // FIXME: This might need to proxy to the WebView's isTransparent(). | 291 // FIXME: This might need to proxy to the WebView's isTransparent(). |
| 292 return false; | 292 return false; |
| 293 } | 293 } |
| 294 | 294 |
| 295 void WebFrameWidgetImpl::layoutAndPaintAsync(WebLayoutAndPaintAsyncCallback* cal
lback) |
| 296 { |
| 297 m_layerTreeView->layoutAndPaintAsync(callback); |
| 298 } |
| 299 |
| 295 void WebFrameWidgetImpl::compositeAndReadbackAsync(WebCompositeAndReadbackAsyncC
allback* callback) | 300 void WebFrameWidgetImpl::compositeAndReadbackAsync(WebCompositeAndReadbackAsyncC
allback* callback) |
| 296 { | 301 { |
| 297 m_layerTreeView->compositeAndReadbackAsync(callback); | 302 m_layerTreeView->compositeAndReadbackAsync(callback); |
| 298 } | 303 } |
| 299 | 304 |
| 300 bool WebFrameWidgetImpl::isTrackingRepaints() const | 305 bool WebFrameWidgetImpl::isTrackingRepaints() const |
| 301 { | 306 { |
| 302 return m_localRoot->frameView()->isTrackingPaintInvalidations(); | 307 return m_localRoot->frameView()->isTrackingPaintInvalidations(); |
| 303 } | 308 } |
| 304 | 309 |
| (...skipping 745 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1050 // correspond to Page visibility, but is necessary until we properly sort ou
t OOPIF visibility. | 1055 // correspond to Page visibility, but is necessary until we properly sort ou
t OOPIF visibility. |
| 1051 m_page->setVisibilityState(static_cast<PageVisibilityState>(visibilityState)
, isInitialState); | 1056 m_page->setVisibilityState(static_cast<PageVisibilityState>(visibilityState)
, isInitialState); |
| 1052 | 1057 |
| 1053 if (m_layerTreeView) { | 1058 if (m_layerTreeView) { |
| 1054 bool visible = visibilityState == WebPageVisibilityStateVisible; | 1059 bool visible = visibilityState == WebPageVisibilityStateVisible; |
| 1055 m_layerTreeView->setVisible(visible); | 1060 m_layerTreeView->setVisible(visible); |
| 1056 } | 1061 } |
| 1057 } | 1062 } |
| 1058 | 1063 |
| 1059 } // namespace blink | 1064 } // namespace blink |
| OLD | NEW |