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 "base/basictypes.h" | 9 #include "base/basictypes.h" |
10 #include "base/debug/trace_event.h" | 10 #include "base/debug/trace_event.h" |
(...skipping 565 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
576 | 576 |
577 const RenderPass* contributingPass = findRenderPassById(RenderPassDrawQu
ad::materialCast(currentQuad)->renderPassId(), frame); | 577 const RenderPass* contributingPass = findRenderPassById(RenderPassDrawQu
ad::materialCast(currentQuad)->renderPassId(), frame); |
578 RenderPassList::const_iterator foundContributingPass = std::find(renderP
asses.begin(), renderPasses.end(), contributingPass); | 578 RenderPassList::const_iterator foundContributingPass = std::find(renderP
asses.begin(), renderPasses.end(), contributingPass); |
579 if (foundContributingPass != renderPasses.end()) | 579 if (foundContributingPass != renderPasses.end()) |
580 return false; | 580 return false; |
581 } | 581 } |
582 return true; | 582 return true; |
583 } | 583 } |
584 | 584 |
585 // Defined for linking tests. | 585 // Defined for linking tests. |
586 template void LayerTreeHostImpl::removeRenderPasses<LayerTreeHostImpl::CullRende
rPassesWithCachedTextures>(CullRenderPassesWithCachedTextures, FrameData&); | 586 template CC_EXPORT void LayerTreeHostImpl::removeRenderPasses<LayerTreeHostImpl:
:CullRenderPassesWithCachedTextures>(CullRenderPassesWithCachedTextures, FrameDa
ta&); |
587 template void LayerTreeHostImpl::removeRenderPasses<LayerTreeHostImpl::CullRende
rPassesWithNoQuads>(CullRenderPassesWithNoQuads, FrameData&); | 587 template CC_EXPORT void LayerTreeHostImpl::removeRenderPasses<LayerTreeHostImpl:
:CullRenderPassesWithNoQuads>(CullRenderPassesWithNoQuads, FrameData&); |
588 | 588 |
589 // static | 589 // static |
590 template<typename RenderPassCuller> | 590 template<typename RenderPassCuller> |
591 void LayerTreeHostImpl::removeRenderPasses(RenderPassCuller culler, FrameData& f
rame) | 591 void LayerTreeHostImpl::removeRenderPasses(RenderPassCuller culler, FrameData& f
rame) |
592 { | 592 { |
593 for (size_t it = culler.renderPassListBegin(frame.renderPasses); it != culle
r.renderPassListEnd(frame.renderPasses); it = culler.renderPassListNext(it)) { | 593 for (size_t it = culler.renderPassListBegin(frame.renderPasses); it != culle
r.renderPassListEnd(frame.renderPasses); it = culler.renderPassListNext(it)) { |
594 const RenderPass* currentPass = frame.renderPasses[it]; | 594 const RenderPass* currentPass = frame.renderPasses[it]; |
595 const QuadList& quadList = currentPass->quadList(); | 595 const QuadList& quadList = currentPass->quadList(); |
596 QuadList::constBackToFrontIterator quadListIterator = quadList.backToFro
ntBegin(); | 596 QuadList::constBackToFrontIterator quadListIterator = quadList.backToFro
ntBegin(); |
597 | 597 |
(...skipping 887 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1485 ScrollbarAnimationController* scrollbarController = layer->scrollbarAnimatio
nController(); | 1485 ScrollbarAnimationController* scrollbarController = layer->scrollbarAnimatio
nController(); |
1486 double monotonicTime = (time - base::TimeTicks()).InSecondsF(); | 1486 double monotonicTime = (time - base::TimeTicks()).InSecondsF(); |
1487 if (scrollbarController && scrollbarController->animate(monotonicTime)) | 1487 if (scrollbarController && scrollbarController->animate(monotonicTime)) |
1488 m_client->setNeedsRedrawOnImplThread(); | 1488 m_client->setNeedsRedrawOnImplThread(); |
1489 | 1489 |
1490 for (size_t i = 0; i < layer->children().size(); ++i) | 1490 for (size_t i = 0; i < layer->children().size(); ++i) |
1491 animateScrollbarsRecursive(layer->children()[i], time); | 1491 animateScrollbarsRecursive(layer->children()[i], time); |
1492 } | 1492 } |
1493 | 1493 |
1494 } // namespace cc | 1494 } // namespace cc |
OLD | NEW |