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 "cc/layer_tree_host_impl.h" | 7 #include "cc/layer_tree_host_impl.h" |
8 | 8 |
9 #include <algorithm> | 9 #include <algorithm> |
10 | 10 |
(...skipping 338 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
349 { | 349 { |
350 DCHECK(renderSurfaceLayerList.empty()); | 350 DCHECK(renderSurfaceLayerList.empty()); |
351 DCHECK(m_rootLayerImpl); | 351 DCHECK(m_rootLayerImpl); |
352 DCHECK(m_renderer); // For maxTextureSize. | 352 DCHECK(m_renderer); // For maxTextureSize. |
353 | 353 |
354 { | 354 { |
355 updateRootScrollLayerImplTransform(); | 355 updateRootScrollLayerImplTransform(); |
356 | 356 |
357 TRACE_EVENT0("cc", "LayerTreeHostImpl::calcDrawEtc"); | 357 TRACE_EVENT0("cc", "LayerTreeHostImpl::calcDrawEtc"); |
358 float pageScaleFactor = m_pinchZoomViewport.pageScaleFactor(); | 358 float pageScaleFactor = m_pinchZoomViewport.pageScaleFactor(); |
359 LayerTreeHostCommon::calculateDrawTransforms(m_rootLayerImpl.get(), devi
ceViewportSize(), m_deviceScaleFactor, pageScaleFactor, &m_layerSorter, renderer
Capabilities().maxTextureSize, renderSurfaceLayerList); | 359 LayerTreeHostCommon::calculateDrawTransforms(m_rootLayerImpl.get(), devi
ceViewportSize(), m_deviceScaleFactor, pageScaleFactor, &m_layerSorter, renderer
Capabilities().maxTextureSize, m_settings.canUseLCDText, renderSurfaceLayerList)
; |
360 | 360 |
361 trackDamageForAllSurfaces(m_rootLayerImpl.get(), renderSurfaceLayerList)
; | 361 trackDamageForAllSurfaces(m_rootLayerImpl.get(), renderSurfaceLayerList)
; |
362 } | 362 } |
363 } | 363 } |
364 | 364 |
365 void LayerTreeHostImpl::FrameData::appendRenderPass(scoped_ptr<RenderPass> rende
rPass) | 365 void LayerTreeHostImpl::FrameData::appendRenderPass(scoped_ptr<RenderPass> rende
rPass) |
366 { | 366 { |
367 RenderPass* pass = renderPass.get(); | 367 RenderPass* pass = renderPass.get(); |
368 renderPasses.push_back(pass); | 368 renderPasses.push_back(pass); |
369 renderPassesById.set(pass->id(), renderPass.Pass()); | 369 renderPassesById.set(pass->id(), renderPass.Pass()); |
(...skipping 1119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1489 ScrollbarAnimationController* scrollbarController = layer->scrollbarAnimatio
nController(); | 1489 ScrollbarAnimationController* scrollbarController = layer->scrollbarAnimatio
nController(); |
1490 double monotonicTime = (time - base::TimeTicks()).InSecondsF(); | 1490 double monotonicTime = (time - base::TimeTicks()).InSecondsF(); |
1491 if (scrollbarController && scrollbarController->animate(monotonicTime)) | 1491 if (scrollbarController && scrollbarController->animate(monotonicTime)) |
1492 m_client->setNeedsRedrawOnImplThread(); | 1492 m_client->setNeedsRedrawOnImplThread(); |
1493 | 1493 |
1494 for (size_t i = 0; i < layer->children().size(); ++i) | 1494 for (size_t i = 0; i < layer->children().size(); ++i) |
1495 animateScrollbarsRecursive(layer->children()[i], time); | 1495 animateScrollbarsRecursive(layer->children()[i], time); |
1496 } | 1496 } |
1497 | 1497 |
1498 } // namespace cc | 1498 } // namespace cc |
OLD | NEW |