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

Side by Side Diff: cc/tree_synchronizer.h

Issue 10690168: Aura: Resize locks with --ui-enable-threaded-compositing (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Moved needing to kick a frame logic up to RWHVA from Compositor. Created 8 years, 2 months 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
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 #ifndef TreeSynchronizer_h 5 #ifndef TreeSynchronizer_h
6 #define TreeSynchronizer_h 6 #define TreeSynchronizer_h
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "cc/scoped_ptr_hash_map.h" 10 #include "cc/scoped_ptr_hash_map.h"
(...skipping 11 matching lines...) Expand all
22 static scoped_ptr<CCLayerImpl> synchronizeTrees(LayerChromium* layerRoot, sc oped_ptr<CCLayerImpl> oldCCLayerImplRoot, CCLayerTreeHostImpl*); 22 static scoped_ptr<CCLayerImpl> synchronizeTrees(LayerChromium* layerRoot, sc oped_ptr<CCLayerImpl> oldCCLayerImplRoot, CCLayerTreeHostImpl*);
23 23
24 private: 24 private:
25 TreeSynchronizer(); // Not instantiable. 25 TreeSynchronizer(); // Not instantiable.
26 26
27 typedef ScopedPtrHashMap<int, CCLayerImpl> ScopedPtrCCLayerImplMap; 27 typedef ScopedPtrHashMap<int, CCLayerImpl> ScopedPtrCCLayerImplMap;
28 typedef base::hash_map<int, CCLayerImpl*> RawPtrCCLayerImplMap; 28 typedef base::hash_map<int, CCLayerImpl*> RawPtrCCLayerImplMap;
29 29
30 // Declared as static member functions so they can access functions on Layer Chromium as a friend class. 30 // Declared as static member functions so they can access functions on Layer Chromium as a friend class.
31 static scoped_ptr<CCLayerImpl> reuseOrCreateCCLayerImpl(RawPtrCCLayerImplMap & newLayers, ScopedPtrCCLayerImplMap& oldLayers, LayerChromium*); 31 static scoped_ptr<CCLayerImpl> reuseOrCreateCCLayerImpl(RawPtrCCLayerImplMap & newLayers, ScopedPtrCCLayerImplMap& oldLayers, LayerChromium*);
32 static void collectExistingCCLayerImplRecursive(ScopedPtrCCLayerImplMap& old Layers, scoped_ptr<CCLayerImpl>); 32 static void collectExistingCCLayerImplRecursive(LayerChromium*, ScopedPtrCCL ayerImplMap& oldLayers, scoped_ptr<CCLayerImpl>);
33 static scoped_ptr<CCLayerImpl> synchronizeTreeRecursive(RawPtrCCLayerImplMap & newLayers, ScopedPtrCCLayerImplMap& oldLayers, LayerChromium*, CCLayerTreeHost Impl*); 33 static scoped_ptr<CCLayerImpl> synchronizeTreeRecursive(RawPtrCCLayerImplMap & newLayers, ScopedPtrCCLayerImplMap& oldLayers, LayerChromium*, CCLayerTreeHost Impl*);
34 static void updateScrollbarLayerPointersRecursive(const RawPtrCCLayerImplMap & newLayers, LayerChromium*); 34 static void updateScrollbarLayerPointersRecursive(const RawPtrCCLayerImplMap & newLayers, LayerChromium*);
35 35
36 DISALLOW_COPY_AND_ASSIGN(TreeSynchronizer); 36 DISALLOW_COPY_AND_ASSIGN(TreeSynchronizer);
37 }; 37 };
38 38
39 } // namespace cc 39 } // namespace cc
40 40
41 #endif // TreeSynchronizer_h 41 #endif // TreeSynchronizer_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698