Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 /* | 1 /* |
| 2 * Copyright (C) 1998, 1999 Torben Weis <weis@kde.org> | 2 * Copyright (C) 1998, 1999 Torben Weis <weis@kde.org> |
| 3 * 1999 Lars Knoll <knoll@kde.org> | 3 * 1999 Lars Knoll <knoll@kde.org> |
| 4 * 1999 Antti Koivisto <koivisto@kde.org> | 4 * 1999 Antti Koivisto <koivisto@kde.org> |
| 5 * 2000 Dirk Mueller <mueller@kde.org> | 5 * 2000 Dirk Mueller <mueller@kde.org> |
| 6 * Copyright (C) 2004, 2005, 2006, 2007, 2008 Apple Inc. All rights reserved. | 6 * Copyright (C) 2004, 2005, 2006, 2007, 2008 Apple Inc. All rights reserved. |
| 7 * (C) 2006 Graham Dennis (graham.dennis@gmail.com) | 7 * (C) 2006 Graham Dennis (graham.dennis@gmail.com) |
| 8 * (C) 2006 Alexey Proskuryakov (ap@nypop.com) | 8 * (C) 2006 Alexey Proskuryakov (ap@nypop.com) |
| 9 * Copyright (C) 2009 Google Inc. All rights reserved. | 9 * Copyright (C) 2009 Google Inc. All rights reserved. |
| 10 * | 10 * |
| (...skipping 4274 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 4285 return canThrottleRendering() && lifecycle().throttlingAllowed(); | 4285 return canThrottleRendering() && lifecycle().throttlingAllowed(); |
| 4286 } | 4286 } |
| 4287 | 4287 |
| 4288 bool FrameView::canThrottleRendering() const | 4288 bool FrameView::canThrottleRendering() const |
| 4289 { | 4289 { |
| 4290 if (!RuntimeEnabledFeatures::renderingPipelineThrottlingEnabled()) | 4290 if (!RuntimeEnabledFeatures::renderingPipelineThrottlingEnabled()) |
| 4291 return false; | 4291 return false; |
| 4292 return m_subtreeThrottled || (m_hiddenForThrottling && m_crossOriginForThrot tling); | 4292 return m_subtreeThrottled || (m_hiddenForThrottling && m_crossOriginForThrot tling); |
| 4293 } | 4293 } |
| 4294 | 4294 |
| 4295 void FrameView::purgeMemory() | |
| 4296 { | |
| 4297 LayoutViewItem viewItem = layoutViewItem(); | |
| 4298 DCHECK(!viewItem.isNull()); | |
| 4299 | |
| 4300 PaintLayer* layer = viewItem.layer(); | |
| 4301 DCHECK(layer); | |
| 4302 if (!layer->hasCompositedLayerMapping()) | |
| 4303 return; | |
| 4304 GraphicsLayer* rootGraphicsLayer = layer->compositedLayerMapping()->mainGrap hicsLayer(); | |
| 4305 if (!rootGraphicsLayer->drawsContent()) | |
| 4306 return; | |
| 4307 rootGraphicsLayer->getPaintController().invalidateAll(); | |
|
esprehn
2016/08/05 23:00:58
This is only the main graphics layer, what about a
tasak
2016/08/08 04:47:36
I see. I would like to traverse all children and t
| |
| 4308 } | |
| 4309 | |
| 4295 } // namespace blink | 4310 } // namespace blink |
| OLD | NEW |