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