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

Side by Side Diff: cc/trees/layer_tree_impl.h

Issue 12603013: Part 10 of cc/ directory shuffles: layers (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 9 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
« no previous file with comments | « cc/trees/layer_tree_host_unittest_scroll.cc ('k') | cc/trees/layer_tree_impl.cc » ('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 2012 The Chromium Authors. All rights reserved. 1 // Copyright 2012 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 CC_TREES_LAYER_TREE_IMPL_H_ 5 #ifndef CC_TREES_LAYER_TREE_IMPL_H_
6 #define CC_TREES_LAYER_TREE_IMPL_H_ 6 #define CC_TREES_LAYER_TREE_IMPL_H_
7 7
8 #include "base/hash_tables.h" 8 #include "base/hash_tables.h"
9 #include "base/values.h" 9 #include "base/values.h"
10 #include "cc/layer_impl.h" 10 #include "cc/layers/layer_impl.h"
11 11
12 #if defined(COMPILER_GCC) 12 #if defined(COMPILER_GCC)
13 namespace BASE_HASH_NAMESPACE { 13 namespace BASE_HASH_NAMESPACE {
14 template<> 14 template<>
15 struct hash<cc::LayerImpl*> { 15 struct hash<cc::LayerImpl*> {
16 size_t operator()(cc::LayerImpl* ptr) const { 16 size_t operator()(cc::LayerImpl* ptr) const {
17 return hash<size_t>()(reinterpret_cast<size_t>(ptr)); 17 return hash<size_t>()(reinterpret_cast<size_t>(ptr));
18 } 18 }
19 }; 19 };
20 } // namespace BASE_HASH_NAMESPACE 20 } // namespace BASE_HASH_NAMESPACE
(...skipping 223 matching lines...) Expand 10 before | Expand all | Expand 10 after
244 // In impl-side painting mode, this is true when the tree may contain 244 // In impl-side painting mode, this is true when the tree may contain
245 // structural differences relative to the active tree. 245 // structural differences relative to the active tree.
246 bool needs_full_tree_sync_; 246 bool needs_full_tree_sync_;
247 247
248 DISALLOW_COPY_AND_ASSIGN(LayerTreeImpl); 248 DISALLOW_COPY_AND_ASSIGN(LayerTreeImpl);
249 }; 249 };
250 250
251 } 251 }
252 252
253 #endif // CC_TREES_LAYER_TREE_IMPL_H_ 253 #endif // CC_TREES_LAYER_TREE_IMPL_H_
OLDNEW
« no previous file with comments | « cc/trees/layer_tree_host_unittest_scroll.cc ('k') | cc/trees/layer_tree_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698