| 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 "CCAppendQuadsData.h" | 9 #include "CCAppendQuadsData.h" |
| 10 #include "CCDamageTracker.h" | 10 #include "CCDamageTracker.h" |
| (...skipping 223 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 234 } | 234 } |
| 235 | 235 |
| 236 void CCLayerTreeHostImpl::calculateRenderSurfaceLayerList(CCLayerList& renderSur
faceLayerList) | 236 void CCLayerTreeHostImpl::calculateRenderSurfaceLayerList(CCLayerList& renderSur
faceLayerList) |
| 237 { | 237 { |
| 238 ASSERT(renderSurfaceLayerList.isEmpty()); | 238 ASSERT(renderSurfaceLayerList.isEmpty()); |
| 239 ASSERT(m_rootLayerImpl); | 239 ASSERT(m_rootLayerImpl); |
| 240 ASSERT(m_renderer); // For maxTextureSize. | 240 ASSERT(m_renderer); // For maxTextureSize. |
| 241 | 241 |
| 242 { | 242 { |
| 243 TRACE_EVENT0("cc", "CCLayerTreeHostImpl::calcDrawEtc"); | 243 TRACE_EVENT0("cc", "CCLayerTreeHostImpl::calcDrawEtc"); |
| 244 CCLayerTreeHostCommon::calculateDrawTransforms(m_rootLayerImpl.get(), de
viceViewportSize(), m_deviceScaleFactor, &m_layerSorter, rendererCapabilities().
maxTextureSize, renderSurfaceLayerList); | 244 CCLayerTreeHostCommon::calculateDrawTransforms(m_rootLayerImpl.get(), de
viceViewportSize(), m_deviceScaleFactor, m_pageScale, &m_layerSorter, rendererCa
pabilities().maxTextureSize, renderSurfaceLayerList); |
| 245 CCLayerTreeHostCommon::calculateVisibleRects(renderSurfaceLayerList); | 245 CCLayerTreeHostCommon::calculateVisibleRects(renderSurfaceLayerList); |
| 246 | 246 |
| 247 trackDamageForAllSurfaces(m_rootLayerImpl.get(), renderSurfaceLayerList)
; | 247 trackDamageForAllSurfaces(m_rootLayerImpl.get(), renderSurfaceLayerList)
; |
| 248 } | 248 } |
| 249 } | 249 } |
| 250 | 250 |
| 251 void CCLayerTreeHostImpl::FrameData::appendRenderPass(PassOwnPtr<CCRenderPass> r
enderPass) | 251 void CCLayerTreeHostImpl::FrameData::appendRenderPass(PassOwnPtr<CCRenderPass> r
enderPass) |
| 252 { | 252 { |
| 253 CCRenderPass* pass = renderPass.get(); | 253 CCRenderPass* pass = renderPass.get(); |
| 254 renderPasses.append(pass); | 254 renderPasses.append(pass); |
| (...skipping 1049 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1304 | 1304 |
| 1305 CCScrollbarAnimationController* scrollbarController = layer->scrollbarAnimat
ionController(); | 1305 CCScrollbarAnimationController* scrollbarController = layer->scrollbarAnimat
ionController(); |
| 1306 if (scrollbarController && scrollbarController->animate(monotonicTime)) | 1306 if (scrollbarController && scrollbarController->animate(monotonicTime)) |
| 1307 m_client->setNeedsRedrawOnImplThread(); | 1307 m_client->setNeedsRedrawOnImplThread(); |
| 1308 | 1308 |
| 1309 for (size_t i = 0; i < layer->children().size(); ++i) | 1309 for (size_t i = 0; i < layer->children().size(); ++i) |
| 1310 animateScrollbarsRecursive(layer->children()[i], monotonicTime); | 1310 animateScrollbarsRecursive(layer->children()[i], monotonicTime); |
| 1311 } | 1311 } |
| 1312 | 1312 |
| 1313 } // namespace cc | 1313 } // namespace cc |
| OLD | NEW |