Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright 2011 The Chromium Authors. All rights reserved. | 1 // Copyright 2011 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "cc/layer_tree_host.h" | 5 #include "cc/layer_tree_host.h" |
| 6 | 6 |
| 7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
| 8 #include "base/debug/trace_event.h" | 8 #include "base/debug/trace_event.h" |
| 9 #include "base/message_loop.h" | 9 #include "base/message_loop.h" |
| 10 #include "base/stl_util.h" | 10 #include "base/stl_util.h" |
| (...skipping 310 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 321 | 321 |
| 322 hostImpl->setViewportSize(layoutViewportSize(), deviceViewportSize()); | 322 hostImpl->setViewportSize(layoutViewportSize(), deviceViewportSize()); |
| 323 hostImpl->setDeviceScaleFactor(deviceScaleFactor()); | 323 hostImpl->setDeviceScaleFactor(deviceScaleFactor()); |
| 324 hostImpl->setDebugState(m_debugState); | 324 hostImpl->setDebugState(m_debugState); |
| 325 hostImpl->savePaintTime(m_renderingStats.totalPaintTime); | 325 hostImpl->savePaintTime(m_renderingStats.totalPaintTime); |
| 326 | 326 |
| 327 if (newImplTreeHasNoEvictedResources) { | 327 if (newImplTreeHasNoEvictedResources) { |
| 328 if (syncTree->ContentsTexturesPurged()) | 328 if (syncTree->ContentsTexturesPurged()) |
| 329 syncTree->ResetContentsTexturesPurged(); | 329 syncTree->ResetContentsTexturesPurged(); |
| 330 } | 330 } |
| 331 if (syncTree->ViewportSizeInvalid()) | |
|
enne (OOO)
2013/02/13 22:41:53
Maybe just always do this?
| |
| 332 syncTree->ResetViewportSizeInvalid(); | |
| 331 | 333 |
| 332 m_commitNumber++; | 334 m_commitNumber++; |
| 333 } | 335 } |
| 334 | 336 |
| 335 void LayerTreeHost::willCommit() | 337 void LayerTreeHost::willCommit() |
| 336 { | 338 { |
| 337 m_client->willCommit(); | 339 m_client->willCommit(); |
| 338 | 340 |
| 339 if (m_debugState.showHudInfo()) { | 341 if (m_debugState.showHudInfo()) { |
| 340 if (!m_hudLayer) | 342 if (!m_hudLayer) |
| (...skipping 533 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 874 for (size_t childIndex = 0; childIndex < layer->children().size(); ++childIn dex) | 876 for (size_t childIndex = 0; childIndex < layer->children().size(); ++childIn dex) |
| 875 setAnimationEventsRecursive(events, layer->children()[childIndex].get(), wallClockTime); | 877 setAnimationEventsRecursive(events, layer->children()[childIndex].get(), wallClockTime); |
| 876 } | 878 } |
| 877 | 879 |
| 878 skia::RefPtr<SkPicture> LayerTreeHost::capturePicture() | 880 skia::RefPtr<SkPicture> LayerTreeHost::capturePicture() |
| 879 { | 881 { |
| 880 return m_proxy->capturePicture(); | 882 return m_proxy->capturePicture(); |
| 881 } | 883 } |
| 882 | 884 |
| 883 } // namespace cc | 885 } // namespace cc |
| OLD | NEW |