| 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 "config.h" | 5 #include "config.h" |
| 6 | 6 |
| 7 #include "CCLayerTreeHostImpl.h" | 7 #include "CCLayerTreeHostImpl.h" |
| 8 | 8 |
| 9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
| 10 #include "CCAppendQuadsData.h" | 10 #include "CCAppendQuadsData.h" |
| (...skipping 231 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 242 | 242 |
| 243 void CCLayerTreeHostImpl::calculateRenderSurfaceLayerList(CCLayerList& renderSur
faceLayerList) | 243 void CCLayerTreeHostImpl::calculateRenderSurfaceLayerList(CCLayerList& renderSur
faceLayerList) |
| 244 { | 244 { |
| 245 ASSERT(renderSurfaceLayerList.isEmpty()); | 245 ASSERT(renderSurfaceLayerList.isEmpty()); |
| 246 ASSERT(m_rootLayerImpl); | 246 ASSERT(m_rootLayerImpl); |
| 247 ASSERT(m_renderer); // For maxTextureSize. | 247 ASSERT(m_renderer); // For maxTextureSize. |
| 248 | 248 |
| 249 { | 249 { |
| 250 TRACE_EVENT0("cc", "CCLayerTreeHostImpl::calcDrawEtc"); | 250 TRACE_EVENT0("cc", "CCLayerTreeHostImpl::calcDrawEtc"); |
| 251 CCLayerTreeHostCommon::calculateDrawTransforms(m_rootLayerImpl.get(), de
viceViewportSize(), m_deviceScaleFactor, &m_layerSorter, rendererCapabilities().
maxTextureSize, renderSurfaceLayerList); | 251 CCLayerTreeHostCommon::calculateDrawTransforms(m_rootLayerImpl.get(), de
viceViewportSize(), m_deviceScaleFactor, &m_layerSorter, rendererCapabilities().
maxTextureSize, renderSurfaceLayerList); |
| 252 CCLayerTreeHostCommon::calculateVisibleRects(renderSurfaceLayerList); | |
| 253 | 252 |
| 254 trackDamageForAllSurfaces(m_rootLayerImpl.get(), renderSurfaceLayerList)
; | 253 trackDamageForAllSurfaces(m_rootLayerImpl.get(), renderSurfaceLayerList)
; |
| 255 } | 254 } |
| 256 } | 255 } |
| 257 | 256 |
| 258 void CCLayerTreeHostImpl::FrameData::appendRenderPass(scoped_ptr<CCRenderPass> r
enderPass) | 257 void CCLayerTreeHostImpl::FrameData::appendRenderPass(scoped_ptr<CCRenderPass> r
enderPass) |
| 259 { | 258 { |
| 260 CCRenderPass* pass = renderPass.get(); | 259 CCRenderPass* pass = renderPass.get(); |
| 261 renderPasses.push_back(pass); | 260 renderPasses.push_back(pass); |
| 262 renderPassesById.set(pass->id(), renderPass.Pass()); | 261 renderPassesById.set(pass->id(), renderPass.Pass()); |
| (...skipping 1059 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1322 | 1321 |
| 1323 CCScrollbarAnimationController* scrollbarController = layer->scrollbarAnimat
ionController(); | 1322 CCScrollbarAnimationController* scrollbarController = layer->scrollbarAnimat
ionController(); |
| 1324 if (scrollbarController && scrollbarController->animate(monotonicTime)) | 1323 if (scrollbarController && scrollbarController->animate(monotonicTime)) |
| 1325 m_client->setNeedsRedrawOnImplThread(); | 1324 m_client->setNeedsRedrawOnImplThread(); |
| 1326 | 1325 |
| 1327 for (size_t i = 0; i < layer->children().size(); ++i) | 1326 for (size_t i = 0; i < layer->children().size(); ++i) |
| 1328 animateScrollbarsRecursive(layer->children()[i], monotonicTime); | 1327 animateScrollbarsRecursive(layer->children()[i], monotonicTime); |
| 1329 } | 1328 } |
| 1330 | 1329 |
| 1331 } // namespace cc | 1330 } // namespace cc |
| OLD | NEW |