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