| 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 316 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 327 syncTree->set_hud_layer(0); | 327 syncTree->set_hud_layer(0); |
| 328 | 328 |
| 329 syncTree->set_source_frame_number(commitNumber()); | 329 syncTree->set_source_frame_number(commitNumber()); |
| 330 syncTree->set_background_color(m_backgroundColor); | 330 syncTree->set_background_color(m_backgroundColor); |
| 331 syncTree->set_has_transparent_background(m_hasTransparentBackground); | 331 syncTree->set_has_transparent_background(m_hasTransparentBackground); |
| 332 | 332 |
| 333 hostImpl->setViewportSize(layoutViewportSize(), deviceViewportSize()); | 333 hostImpl->setViewportSize(layoutViewportSize(), deviceViewportSize()); |
| 334 hostImpl->setDeviceScaleFactor(deviceScaleFactor()); | 334 hostImpl->setDeviceScaleFactor(deviceScaleFactor()); |
| 335 hostImpl->setPageScaleFactorAndLimits(m_pageScaleFactor, m_minPageScaleFacto
r, m_maxPageScaleFactor); | 335 hostImpl->setPageScaleFactorAndLimits(m_pageScaleFactor, m_minPageScaleFacto
r, m_maxPageScaleFactor); |
| 336 hostImpl->setDebugState(m_debugState); | 336 hostImpl->setDebugState(m_debugState); |
| 337 hostImpl->savePaintTime(m_renderingStats.totalPaintTimeInSeconds); |
| 337 | 338 |
| 338 m_commitNumber++; | 339 m_commitNumber++; |
| 339 } | 340 } |
| 340 | 341 |
| 341 void LayerTreeHost::willCommit() | 342 void LayerTreeHost::willCommit() |
| 342 { | 343 { |
| 343 m_client->willCommit(); | 344 m_client->willCommit(); |
| 344 | 345 |
| 345 if (m_debugState.showHudInfo()) { | 346 if (m_debugState.showHudInfo()) { |
| 346 if (!m_hudLayer) | 347 if (!m_hudLayer) |
| (...skipping 542 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 889 for (size_t childIndex = 0; childIndex < layer->children().size(); ++childIn
dex) | 890 for (size_t childIndex = 0; childIndex < layer->children().size(); ++childIn
dex) |
| 890 setAnimationEventsRecursive(events, layer->children()[childIndex].get(),
wallClockTime); | 891 setAnimationEventsRecursive(events, layer->children()[childIndex].get(),
wallClockTime); |
| 891 } | 892 } |
| 892 | 893 |
| 893 skia::RefPtr<SkPicture> LayerTreeHost::capturePicture() | 894 skia::RefPtr<SkPicture> LayerTreeHost::capturePicture() |
| 894 { | 895 { |
| 895 return m_proxy->capturePicture(); | 896 return m_proxy->capturePicture(); |
| 896 } | 897 } |
| 897 | 898 |
| 898 } // namespace cc | 899 } // namespace cc |
| OLD | NEW |