Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(65)

Side by Side Diff: cc/layer_tree_host_impl.cc

Issue 11365025: Make cc a component (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 8 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « cc/layer_tree_host_impl.h ('k') | cc/layer_updater.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 561 matching lines...) Expand 10 before | Expand all | Expand 10 after
572 572
573 const RenderPass* contributingPass = findRenderPassById(RenderPassDrawQu ad::materialCast(currentQuad)->renderPassId(), frame); 573 const RenderPass* contributingPass = findRenderPassById(RenderPassDrawQu ad::materialCast(currentQuad)->renderPassId(), frame);
574 RenderPassList::const_iterator foundContributingPass = std::find(renderP asses.begin(), renderPasses.end(), contributingPass); 574 RenderPassList::const_iterator foundContributingPass = std::find(renderP asses.begin(), renderPasses.end(), contributingPass);
575 if (foundContributingPass != renderPasses.end()) 575 if (foundContributingPass != renderPasses.end())
576 return false; 576 return false;
577 } 577 }
578 return true; 578 return true;
579 } 579 }
580 580
581 // Defined for linking tests. 581 // Defined for linking tests.
582 template void LayerTreeHostImpl::removeRenderPasses<LayerTreeHostImpl::CullRende rPassesWithCachedTextures>(CullRenderPassesWithCachedTextures, FrameData&); 582 template CC_EXPORT void LayerTreeHostImpl::removeRenderPasses<LayerTreeHostImpl: :CullRenderPassesWithCachedTextures>(CullRenderPassesWithCachedTextures, FrameDa ta&);
583 template void LayerTreeHostImpl::removeRenderPasses<LayerTreeHostImpl::CullRende rPassesWithNoQuads>(CullRenderPassesWithNoQuads, FrameData&); 583 template CC_EXPORT void LayerTreeHostImpl::removeRenderPasses<LayerTreeHostImpl: :CullRenderPassesWithNoQuads>(CullRenderPassesWithNoQuads, FrameData&);
584 584
585 // static 585 // static
586 template<typename RenderPassCuller> 586 template<typename RenderPassCuller>
587 void LayerTreeHostImpl::removeRenderPasses(RenderPassCuller culler, FrameData& f rame) 587 void LayerTreeHostImpl::removeRenderPasses(RenderPassCuller culler, FrameData& f rame)
588 { 588 {
589 for (size_t it = culler.renderPassListBegin(frame.renderPasses); it != culle r.renderPassListEnd(frame.renderPasses); it = culler.renderPassListNext(it)) { 589 for (size_t it = culler.renderPassListBegin(frame.renderPasses); it != culle r.renderPassListEnd(frame.renderPasses); it = culler.renderPassListNext(it)) {
590 const RenderPass* currentPass = frame.renderPasses[it]; 590 const RenderPass* currentPass = frame.renderPasses[it];
591 const QuadList& quadList = currentPass->quadList(); 591 const QuadList& quadList = currentPass->quadList();
592 QuadList::constBackToFrontIterator quadListIterator = quadList.backToFro ntBegin(); 592 QuadList::constBackToFrontIterator quadListIterator = quadList.backToFro ntBegin();
593 593
(...skipping 878 matching lines...) Expand 10 before | Expand all | Expand 10 after
1472 ScrollbarAnimationController* scrollbarController = layer->scrollbarAnimatio nController(); 1472 ScrollbarAnimationController* scrollbarController = layer->scrollbarAnimatio nController();
1473 double monotonicTime = (time - base::TimeTicks()).InSecondsF(); 1473 double monotonicTime = (time - base::TimeTicks()).InSecondsF();
1474 if (scrollbarController && scrollbarController->animate(monotonicTime)) 1474 if (scrollbarController && scrollbarController->animate(monotonicTime))
1475 m_client->setNeedsRedrawOnImplThread(); 1475 m_client->setNeedsRedrawOnImplThread();
1476 1476
1477 for (size_t i = 0; i < layer->children().size(); ++i) 1477 for (size_t i = 0; i < layer->children().size(); ++i)
1478 animateScrollbarsRecursive(layer->children()[i], time); 1478 animateScrollbarsRecursive(layer->children()[i], time);
1479 } 1479 }
1480 1480
1481 } // namespace cc 1481 } // namespace cc
OLDNEW
« no previous file with comments | « cc/layer_tree_host_impl.h ('k') | cc/layer_updater.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698