| 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" |
| (...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 103 const gfx::Rect& raster_dirty_rect, | 103 const gfx::Rect& raster_dirty_rect, |
| 104 const gfx::AxisTransform2d& transform, | 104 const gfx::AxisTransform2d& transform, |
| 105 const gfx::ColorSpace& dst_color_space, | 105 const gfx::ColorSpace& dst_color_space, |
| 106 const RasterSource::PlaybackSettings& playback_settings, | 106 const RasterSource::PlaybackSettings& playback_settings, |
| 107 uint64_t previous_content_id, | 107 uint64_t previous_content_id, |
| 108 uint64_t new_content_id); | 108 uint64_t new_content_id); |
| 109 void CopyOnWorkerThread(StagingBuffer* staging_buffer, | 109 void CopyOnWorkerThread(StagingBuffer* staging_buffer, |
| 110 ResourceProvider::ScopedWriteLockGL* resource_lock, | 110 ResourceProvider::ScopedWriteLockGL* resource_lock, |
| 111 const gpu::SyncToken& sync_token, | 111 const gpu::SyncToken& sync_token, |
| 112 const RasterSource* raster_source, | 112 const RasterSource* raster_source, |
| 113 uint64_t previous_content_id, | 113 const gfx::Rect& rect_to_copy); |
| 114 uint64_t new_content_id); | |
| 115 gfx::BufferUsage StagingBufferUsage() const; | 114 gfx::BufferUsage StagingBufferUsage() const; |
| 116 | 115 |
| 117 ContextProvider* const compositor_context_provider_; | 116 ContextProvider* const compositor_context_provider_; |
| 118 ContextProvider* const worker_context_provider_; | 117 ContextProvider* const worker_context_provider_; |
| 119 ResourceProvider* const resource_provider_; | 118 ResourceProvider* const resource_provider_; |
| 120 const int max_bytes_per_copy_operation_; | 119 const int max_bytes_per_copy_operation_; |
| 121 const bool use_partial_raster_; | 120 const bool use_partial_raster_; |
| 122 | 121 |
| 123 // Context lock must be acquired when accessing this member. | 122 // Context lock must be acquired when accessing this member. |
| 124 int bytes_scheduled_since_last_flush_; | 123 int bytes_scheduled_since_last_flush_; |
| 125 | 124 |
| 126 const ResourceFormat preferred_tile_format_; | 125 const ResourceFormat preferred_tile_format_; |
| 127 StagingBufferPool staging_pool_; | 126 StagingBufferPool staging_pool_; |
| 128 | 127 |
| 129 const bool async_worker_context_enabled_; | 128 const bool async_worker_context_enabled_; |
| 130 | 129 |
| 131 std::set<RasterBufferImpl*> pending_raster_buffers_; | 130 std::set<RasterBufferImpl*> pending_raster_buffers_; |
| 132 | 131 |
| 133 DISALLOW_COPY_AND_ASSIGN(OneCopyRasterBufferProvider); | 132 DISALLOW_COPY_AND_ASSIGN(OneCopyRasterBufferProvider); |
| 134 }; | 133 }; |
| 135 | 134 |
| 136 } // namespace cc | 135 } // namespace cc |
| 137 | 136 |
| 138 #endif // CC_RASTER_ONE_COPY_RASTER_BUFFER_PROVIDER_H_ | 137 #endif // CC_RASTER_ONE_COPY_RASTER_BUFFER_PROVIDER_H_ |
| OLD | NEW |