| 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 392 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 403 void LayerTreeHostImpl::calculateRenderSurfaceLayerList(LayerList& renderSurface
LayerList) | 403 void LayerTreeHostImpl::calculateRenderSurfaceLayerList(LayerList& renderSurface
LayerList) |
| 404 { | 404 { |
| 405 DCHECK(renderSurfaceLayerList.empty()); | 405 DCHECK(renderSurfaceLayerList.empty()); |
| 406 DCHECK(rootLayer()); | 406 DCHECK(rootLayer()); |
| 407 DCHECK(m_renderer); // For maxTextureSize. | 407 DCHECK(m_renderer); // For maxTextureSize. |
| 408 { | 408 { |
| 409 updateRootScrollLayerImplTransform(); | 409 updateRootScrollLayerImplTransform(); |
| 410 | 410 |
| 411 TRACE_EVENT0("cc", "LayerTreeHostImpl::calcDrawEtc"); | 411 TRACE_EVENT0("cc", "LayerTreeHostImpl::calcDrawEtc"); |
| 412 float pageScaleFactor = m_pinchZoomViewport.pageScaleFactor(); | 412 float pageScaleFactor = m_pinchZoomViewport.pageScaleFactor(); |
| 413 LayerTreeHostCommon::calculateDrawProperties(rootLayer(), deviceViewport
Size(), m_deviceScaleFactor, pageScaleFactor, rendererCapabilities().maxTextureS
ize, renderSurfaceLayerList); | 413 LayerTreeHostCommon::calculateDrawProperties(rootLayer(), deviceViewport
Size(), m_deviceScaleFactor, pageScaleFactor, rendererCapabilities().maxTextureS
ize, m_settings.canUseLCDText, renderSurfaceLayerList); |
| 414 } | 414 } |
| 415 } | 415 } |
| 416 | 416 |
| 417 void LayerTreeHostImpl::FrameData::appendRenderPass(scoped_ptr<RenderPass> rende
rPass) | 417 void LayerTreeHostImpl::FrameData::appendRenderPass(scoped_ptr<RenderPass> rende
rPass) |
| 418 { | 418 { |
| 419 RenderPass* pass = renderPass.get(); | 419 RenderPass* pass = renderPass.get(); |
| 420 renderPasses.push_back(pass); | 420 renderPasses.push_back(pass); |
| 421 renderPassesById.set(pass->id, renderPass.Pass()); | 421 renderPassesById.set(pass->id, renderPass.Pass()); |
| 422 } | 422 } |
| 423 | 423 |
| (...skipping 1280 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1704 ScrollbarAnimationController* scrollbarController = layer->scrollbarAnimatio
nController(); | 1704 ScrollbarAnimationController* scrollbarController = layer->scrollbarAnimatio
nController(); |
| 1705 double monotonicTime = (time - base::TimeTicks()).InSecondsF(); | 1705 double monotonicTime = (time - base::TimeTicks()).InSecondsF(); |
| 1706 if (scrollbarController && scrollbarController->animate(monotonicTime)) | 1706 if (scrollbarController && scrollbarController->animate(monotonicTime)) |
| 1707 m_client->setNeedsRedrawOnImplThread(); | 1707 m_client->setNeedsRedrawOnImplThread(); |
| 1708 | 1708 |
| 1709 for (size_t i = 0; i < layer->children().size(); ++i) | 1709 for (size_t i = 0; i < layer->children().size(); ++i) |
| 1710 animateScrollbarsRecursive(layer->children()[i], time); | 1710 animateScrollbarsRecursive(layer->children()[i], time); |
| 1711 } | 1711 } |
| 1712 | 1712 |
| 1713 } // namespace cc | 1713 } // namespace cc |
| OLD | NEW |