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

Side by Side Diff: cc/resources/resource_pool.h

Issue 2194013002: cc: Delete the Renderer base class. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@dcheck-delegating
Patch Set: delete-renderer-base-class: rebase Created 4 years, 4 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
« no previous file with comments | « cc/output/vulkan_renderer.cc ('k') | cc/resources/scoped_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_RESOURCES_RESOURCE_POOL_H_ 5 #ifndef CC_RESOURCES_RESOURCE_POOL_H_
6 #define CC_RESOURCES_RESOURCE_POOL_H_ 6 #define CC_RESOURCES_RESOURCE_POOL_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
11 #include <deque> 11 #include <deque>
12 #include <map> 12 #include <map>
13 #include <memory> 13 #include <memory>
14 14
15 #include "base/macros.h" 15 #include "base/macros.h"
16 #include "base/memory/ptr_util.h" 16 #include "base/memory/ptr_util.h"
17 #include "base/trace_event/memory_dump_provider.h" 17 #include "base/trace_event/memory_dump_provider.h"
18 #include "cc/base/cc_export.h" 18 #include "cc/base/cc_export.h"
19 #include "cc/output/renderer.h"
20 #include "cc/resources/resource.h" 19 #include "cc/resources/resource.h"
21 #include "cc/resources/resource_format.h" 20 #include "cc/resources/resource_format.h"
22 #include "cc/resources/scoped_resource.h" 21 #include "cc/resources/scoped_resource.h"
23 22
24 namespace cc { 23 namespace cc {
25 24
26 class CC_EXPORT ResourcePool : public base::trace_event::MemoryDumpProvider { 25 class CC_EXPORT ResourcePool : public base::trace_event::MemoryDumpProvider {
27 public: 26 public:
28 static std::unique_ptr<ResourcePool> CreateForGpuMemoryBufferResources( 27 static std::unique_ptr<ResourcePool> CreateForGpuMemoryBufferResources(
29 ResourceProvider* resource_provider, 28 ResourceProvider* resource_provider,
(...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after
176 base::TimeDelta resource_expiration_delay_; 175 base::TimeDelta resource_expiration_delay_;
177 176
178 base::WeakPtrFactory<ResourcePool> weak_ptr_factory_; 177 base::WeakPtrFactory<ResourcePool> weak_ptr_factory_;
179 178
180 DISALLOW_COPY_AND_ASSIGN(ResourcePool); 179 DISALLOW_COPY_AND_ASSIGN(ResourcePool);
181 }; 180 };
182 181
183 } // namespace cc 182 } // namespace cc
184 183
185 #endif // CC_RESOURCES_RESOURCE_POOL_H_ 184 #endif // CC_RESOURCES_RESOURCE_POOL_H_
OLDNEW
« no previous file with comments | « cc/output/vulkan_renderer.cc ('k') | cc/resources/scoped_resource_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698