| 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 228 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 239 } | 239 } |
| 240 | 240 |
| 241 void CCLayerTreeHostImpl::calculateRenderSurfaceLayerList(CCLayerList& renderSur
faceLayerList) | 241 void CCLayerTreeHostImpl::calculateRenderSurfaceLayerList(CCLayerList& renderSur
faceLayerList) |
| 242 { | 242 { |
| 243 ASSERT(renderSurfaceLayerList.isEmpty()); | 243 ASSERT(renderSurfaceLayerList.isEmpty()); |
| 244 ASSERT(m_rootLayerImpl); | 244 ASSERT(m_rootLayerImpl); |
| 245 ASSERT(m_renderer); // For maxTextureSize. | 245 ASSERT(m_renderer); // For maxTextureSize. |
| 246 | 246 |
| 247 { | 247 { |
| 248 TRACE_EVENT0("cc", "CCLayerTreeHostImpl::calcDrawEtc"); | 248 TRACE_EVENT0("cc", "CCLayerTreeHostImpl::calcDrawEtc"); |
| 249 CCLayerTreeHostCommon::calculateDrawTransforms(m_rootLayerImpl.get(), de
viceViewportSize(), m_deviceScaleFactor, &m_layerSorter, rendererCapabilities().
maxTextureSize, renderSurfaceLayerList); | 249 CCLayerTreeHostCommon::calculateDrawTransforms(m_rootLayerImpl.get(), de
viceViewportSize(), m_deviceScaleFactor, m_pageScale, &m_layerSorter, rendererCa
pabilities().maxTextureSize, renderSurfaceLayerList); |
| 250 CCLayerTreeHostCommon::calculateVisibleRects(renderSurfaceLayerList); | 250 CCLayerTreeHostCommon::calculateVisibleRects(renderSurfaceLayerList); |
| 251 | 251 |
| 252 trackDamageForAllSurfaces(m_rootLayerImpl.get(), renderSurfaceLayerList)
; | 252 trackDamageForAllSurfaces(m_rootLayerImpl.get(), renderSurfaceLayerList)
; |
| 253 } | 253 } |
| 254 } | 254 } |
| 255 | 255 |
| 256 void CCLayerTreeHostImpl::FrameData::appendRenderPass(scoped_ptr<CCRenderPass> r
enderPass) | 256 void CCLayerTreeHostImpl::FrameData::appendRenderPass(scoped_ptr<CCRenderPass> r
enderPass) |
| 257 { | 257 { |
| 258 CCRenderPass* pass = renderPass.get(); | 258 CCRenderPass* pass = renderPass.get(); |
| 259 renderPasses.push_back(pass); | 259 renderPasses.push_back(pass); |
| (...skipping 1053 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1313 | 1313 |
| 1314 CCScrollbarAnimationController* scrollbarController = layer->scrollbarAnimat
ionController(); | 1314 CCScrollbarAnimationController* scrollbarController = layer->scrollbarAnimat
ionController(); |
| 1315 if (scrollbarController && scrollbarController->animate(monotonicTime)) | 1315 if (scrollbarController && scrollbarController->animate(monotonicTime)) |
| 1316 m_client->setNeedsRedrawOnImplThread(); | 1316 m_client->setNeedsRedrawOnImplThread(); |
| 1317 | 1317 |
| 1318 for (size_t i = 0; i < layer->children().size(); ++i) | 1318 for (size_t i = 0; i < layer->children().size(); ++i) |
| 1319 animateScrollbarsRecursive(layer->children()[i], monotonicTime); | 1319 animateScrollbarsRecursive(layer->children()[i], monotonicTime); |
| 1320 } | 1320 } |
| 1321 | 1321 |
| 1322 } // namespace cc | 1322 } // namespace cc |
| OLD | NEW |