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

Side by Side Diff: cc/prioritized_resource_manager.h

Issue 11377055: cc: Rename Texture class to Resource. (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/prioritized_resource.cc ('k') | cc/prioritized_resource_unittest.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_PRIORITIZED_RESOURCE_MANAGER_H_ 5 #ifndef CC_PRIORITIZED_RESOURCE_MANAGER_H_
6 #define CC_PRIORITIZED_RESOURCE_MANAGER_H_ 6 #define CC_PRIORITIZED_RESOURCE_MANAGER_H_
7 7
8 #include <list> 8 #include <list>
9 #include <vector> 9 #include <vector>
10 10
11 #include "base/basictypes.h" 11 #include "base/basictypes.h"
12 #include "base/hash_tables.h" 12 #include "base/hash_tables.h"
13 #include "base/memory/scoped_ptr.h" 13 #include "base/memory/scoped_ptr.h"
14 #include "cc/cc_export.h" 14 #include "cc/cc_export.h"
15 #include "cc/proxy.h" 15 #include "cc/proxy.h"
16 #include "cc/prioritized_resource.h" 16 #include "cc/prioritized_resource.h"
17 #include "cc/priority_calculator.h" 17 #include "cc/priority_calculator.h"
18 #include "cc/texture.h" 18 #include "cc/resource.h"
19 #include "third_party/khronos/GLES2/gl2.h" 19 #include "third_party/khronos/GLES2/gl2.h"
20 #include "ui/gfx/size.h" 20 #include "ui/gfx/size.h"
21 21
22 #if defined(COMPILER_GCC) 22 #if defined(COMPILER_GCC)
23 namespace BASE_HASH_NAMESPACE { 23 namespace BASE_HASH_NAMESPACE {
24 template<> 24 template<>
25 struct hash<cc::PrioritizedResource*> { 25 struct hash<cc::PrioritizedResource*> {
26 size_t operator()(cc::PrioritizedResource* ptr) const { 26 size_t operator()(cc::PrioritizedResource* ptr) const {
27 return hash<size_t>()(reinterpret_cast<size_t>(ptr)); 27 return hash<size_t>()(reinterpret_cast<size_t>(ptr));
28 } 28 }
(...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after
191 // Statistics copied at the time of pushTexturePrioritiesToBackings. 191 // Statistics copied at the time of pushTexturePrioritiesToBackings.
192 size_t m_memoryVisibleLastPushedBytes; 192 size_t m_memoryVisibleLastPushedBytes;
193 size_t m_memoryVisibleAndNearbyLastPushedBytes; 193 size_t m_memoryVisibleAndNearbyLastPushedBytes;
194 194
195 DISALLOW_COPY_AND_ASSIGN(PrioritizedResourceManager); 195 DISALLOW_COPY_AND_ASSIGN(PrioritizedResourceManager);
196 }; 196 };
197 197
198 } // namespace cc 198 } // namespace cc
199 199
200 #endif // CC_PRIORITIZED_RESOURCE_MANAGER_H_ 200 #endif // CC_PRIORITIZED_RESOURCE_MANAGER_H_
OLDNEW
« no previous file with comments | « cc/prioritized_resource.cc ('k') | cc/prioritized_resource_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698