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

Side by Side Diff: cc/layer_tree_host_impl.cc

Issue 11348384: cc: Use asynchronous set pixels API for impl-side painting. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years 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 | « no previous file | cc/tile_manager.h » ('j') | cc/tile_manager.cc » ('J')
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 "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 719 matching lines...) Expand 10 before | Expand all | Expand 10 after
730 DCHECK(it >= 0); 730 DCHECK(it >= 0);
731 } 731 }
732 } 732 }
733 } 733 }
734 734
735 bool LayerTreeHostImpl::prepareToDraw(FrameData& frame) 735 bool LayerTreeHostImpl::prepareToDraw(FrameData& frame)
736 { 736 {
737 TRACE_EVENT0("cc", "LayerTreeHostImpl::prepareToDraw"); 737 TRACE_EVENT0("cc", "LayerTreeHostImpl::prepareToDraw");
738 DCHECK(canDraw()); 738 DCHECK(canDraw());
739 739
740 if (m_tileManager)
741 m_tileManager->PrepareToDraw();
742
740 frame.renderSurfaceLayerList = &m_renderSurfaceLayerList; 743 frame.renderSurfaceLayerList = &m_renderSurfaceLayerList;
741 frame.renderPasses.clear(); 744 frame.renderPasses.clear();
742 frame.renderPassesById.clear(); 745 frame.renderPassesById.clear();
743 frame.renderSurfaceLayerList->clear(); 746 frame.renderSurfaceLayerList->clear();
744 frame.willDrawLayers.clear(); 747 frame.willDrawLayers.clear();
745 748
746 if (!calculateRenderPasses(frame)) 749 if (!calculateRenderPasses(frame))
747 return false; 750 return false;
748 751
749 // If we return true, then we expect drawLayers() to be called before this f unction is called again. 752 // If we return true, then we expect drawLayers() to be called before this f unction is called again.
(...skipping 881 matching lines...) Expand 10 before | Expand all | Expand 10 after
1631 ScrollbarAnimationController* scrollbarController = layer->scrollbarAnimatio nController(); 1634 ScrollbarAnimationController* scrollbarController = layer->scrollbarAnimatio nController();
1632 double monotonicTime = (time - base::TimeTicks()).InSecondsF(); 1635 double monotonicTime = (time - base::TimeTicks()).InSecondsF();
1633 if (scrollbarController && scrollbarController->animate(monotonicTime)) 1636 if (scrollbarController && scrollbarController->animate(monotonicTime))
1634 m_client->setNeedsRedrawOnImplThread(); 1637 m_client->setNeedsRedrawOnImplThread();
1635 1638
1636 for (size_t i = 0; i < layer->children().size(); ++i) 1639 for (size_t i = 0; i < layer->children().size(); ++i)
1637 animateScrollbarsRecursive(layer->children()[i], time); 1640 animateScrollbarsRecursive(layer->children()[i], time);
1638 } 1641 }
1639 1642
1640 } // namespace cc 1643 } // namespace cc
OLDNEW
« no previous file with comments | « no previous file | cc/tile_manager.h » ('j') | cc/tile_manager.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698