| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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_ |
| OLD | NEW |