| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_ONE_COPY_RASTER_BUFFER_PROVIDER_H_ | 5 #ifndef CC_RASTER_ONE_COPY_RASTER_BUFFER_PROVIDER_H_ |
| 6 #define CC_RASTER_ONE_COPY_RASTER_BUFFER_PROVIDER_H_ | 6 #define CC_RASTER_ONE_COPY_RASTER_BUFFER_PROVIDER_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include "base/macros.h" | 10 #include "base/macros.h" |
| 11 #include "cc/output/context_provider.h" | 11 #include "cc/output/context_provider.h" |
| 12 #include "cc/raster/raster_buffer_provider.h" | 12 #include "cc/raster/raster_buffer_provider.h" |
| 13 #include "cc/raster/staging_buffer_pool.h" | 13 #include "cc/raster/staging_buffer_pool.h" |
| 14 #include "cc/resources/resource_provider.h" | 14 #include "cc/resources/resource_provider.h" |
| 15 #include "gpu/command_buffer/common/sync_token.h" | 15 #include "gpu/command_buffer/common/sync_token.h" |
| 16 | 16 |
| 17 namespace cc { | 17 namespace cc { |
| 18 struct StagingBuffer; | 18 struct StagingBuffer; |
| 19 class StagingBufferPool; | 19 class StagingBufferPool; |
| 20 class ResourcePool; | |
| 21 | 20 |
| 22 class CC_EXPORT OneCopyRasterBufferProvider : public RasterBufferProvider { | 21 class CC_EXPORT OneCopyRasterBufferProvider : public RasterBufferProvider { |
| 23 public: | 22 public: |
| 24 OneCopyRasterBufferProvider(base::SequencedTaskRunner* task_runner, | 23 OneCopyRasterBufferProvider(base::SequencedTaskRunner* task_runner, |
| 25 ContextProvider* compositor_context_provider, | 24 ContextProvider* compositor_context_provider, |
| 26 ContextProvider* worker_context_provider, | 25 ContextProvider* worker_context_provider, |
| 27 ResourceProvider* resource_provider, | 26 ResourceProvider* resource_provider, |
| 28 int max_copy_texture_chromium_size, | 27 int max_copy_texture_chromium_size, |
| 29 bool use_partial_raster, | 28 bool use_partial_raster, |
| 30 int max_staging_buffer_usage_in_bytes, | 29 int max_staging_buffer_usage_in_bytes, |
| (...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 125 const bool async_worker_context_enabled_; | 124 const bool async_worker_context_enabled_; |
| 126 | 125 |
| 127 std::set<RasterBufferImpl*> pending_raster_buffers_; | 126 std::set<RasterBufferImpl*> pending_raster_buffers_; |
| 128 | 127 |
| 129 DISALLOW_COPY_AND_ASSIGN(OneCopyRasterBufferProvider); | 128 DISALLOW_COPY_AND_ASSIGN(OneCopyRasterBufferProvider); |
| 130 }; | 129 }; |
| 131 | 130 |
| 132 } // namespace cc | 131 } // namespace cc |
| 133 | 132 |
| 134 #endif // CC_RASTER_ONE_COPY_RASTER_BUFFER_PROVIDER_H_ | 133 #endif // CC_RASTER_ONE_COPY_RASTER_BUFFER_PROVIDER_H_ |
| OLD | NEW |