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

Side by Side Diff: cc/raster/staging_buffer_pool.h

Issue 2503283002: cc: Cleanup class/struct forward declarations (Closed)
Patch Set: Add missing fwd class decl in blimp_embedder_compositor.h Created 4 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
« no previous file with comments | « cc/raster/raster_buffer_provider.h ('k') | cc/resources/resource_provider.h » ('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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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_RASTER_STAGING_BUFFER_POOL_H_ 5 #ifndef CC_RASTER_STAGING_BUFFER_POOL_H_
6 #define CC_RASTER_STAGING_BUFFER_POOL_H_ 6 #define CC_RASTER_STAGING_BUFFER_POOL_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <deque> 10 #include <deque>
(...skipping 11 matching lines...) Expand all
22 #include "cc/resources/resource_provider.h" 22 #include "cc/resources/resource_provider.h"
23 23
24 namespace gpu { 24 namespace gpu {
25 namespace gles2 { 25 namespace gles2 {
26 class GLES2Interface; 26 class GLES2Interface;
27 } 27 }
28 } 28 }
29 29
30 namespace cc { 30 namespace cc {
31 class Resource; 31 class Resource;
32 class RasterSource;
33 class ResourcePool;
34 32
35 struct StagingBuffer { 33 struct StagingBuffer {
36 StagingBuffer(const gfx::Size& size, ResourceFormat format); 34 StagingBuffer(const gfx::Size& size, ResourceFormat format);
37 ~StagingBuffer(); 35 ~StagingBuffer();
38 36
39 void DestroyGLResources(gpu::gles2::GLES2Interface* gl); 37 void DestroyGLResources(gpu::gles2::GLES2Interface* gl);
40 void OnMemoryDump(base::trace_event::ProcessMemoryDump* pmd, 38 void OnMemoryDump(base::trace_event::ProcessMemoryDump* pmd,
41 ResourceFormat format, 39 ResourceFormat format,
42 bool is_free) const; 40 bool is_free) const;
43 41
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
114 base::Closure reduce_memory_usage_callback_; 112 base::Closure reduce_memory_usage_callback_;
115 113
116 base::WeakPtrFactory<StagingBufferPool> weak_ptr_factory_; 114 base::WeakPtrFactory<StagingBufferPool> weak_ptr_factory_;
117 115
118 DISALLOW_COPY_AND_ASSIGN(StagingBufferPool); 116 DISALLOW_COPY_AND_ASSIGN(StagingBufferPool);
119 }; 117 };
120 118
121 } // namespace cc 119 } // namespace cc
122 120
123 #endif // CC_RASTER_STAGING_BUFFER_POOL_H_ 121 #endif // CC_RASTER_STAGING_BUFFER_POOL_H_
OLDNEW
« no previous file with comments | « cc/raster/raster_buffer_provider.h ('k') | cc/resources/resource_provider.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698