| 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 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 91 DISALLOW_COPY_AND_ASSIGN(RasterBufferImpl); | 91 DISALLOW_COPY_AND_ASSIGN(RasterBufferImpl); |
| 92 }; | 92 }; |
| 93 | 93 |
| 94 void PlaybackToStagingBuffer( | 94 void PlaybackToStagingBuffer( |
| 95 StagingBuffer* staging_buffer, | 95 StagingBuffer* staging_buffer, |
| 96 const Resource* resource, | 96 const Resource* resource, |
| 97 const RasterSource* raster_source, | 97 const RasterSource* raster_source, |
| 98 const gfx::Rect& raster_full_rect, | 98 const gfx::Rect& raster_full_rect, |
| 99 const gfx::Rect& raster_dirty_rect, | 99 const gfx::Rect& raster_dirty_rect, |
| 100 float scale, | 100 float scale, |
| 101 sk_sp<SkColorSpace> dst_color_space, |
| 101 const RasterSource::PlaybackSettings& playback_settings, | 102 const RasterSource::PlaybackSettings& playback_settings, |
| 102 uint64_t previous_content_id, | 103 uint64_t previous_content_id, |
| 103 uint64_t new_content_id); | 104 uint64_t new_content_id); |
| 104 void CopyOnWorkerThread(StagingBuffer* staging_buffer, | 105 void CopyOnWorkerThread(StagingBuffer* staging_buffer, |
| 105 ResourceProvider::ScopedWriteLockGL* resource_lock, | 106 ResourceProvider::ScopedWriteLockGL* resource_lock, |
| 106 const gpu::SyncToken& sync_token, | 107 const gpu::SyncToken& sync_token, |
| 107 const RasterSource* raster_source, | 108 const RasterSource* raster_source, |
| 108 uint64_t previous_content_id, | 109 uint64_t previous_content_id, |
| 109 uint64_t new_content_id); | 110 uint64_t new_content_id); |
| 110 gfx::BufferUsage StagingBufferUsage() const; | 111 gfx::BufferUsage StagingBufferUsage() const; |
| (...skipping 13 matching lines...) Expand all Loading... |
| 124 const bool async_worker_context_enabled_; | 125 const bool async_worker_context_enabled_; |
| 125 | 126 |
| 126 std::set<RasterBufferImpl*> pending_raster_buffers_; | 127 std::set<RasterBufferImpl*> pending_raster_buffers_; |
| 127 | 128 |
| 128 DISALLOW_COPY_AND_ASSIGN(OneCopyRasterBufferProvider); | 129 DISALLOW_COPY_AND_ASSIGN(OneCopyRasterBufferProvider); |
| 129 }; | 130 }; |
| 130 | 131 |
| 131 } // namespace cc | 132 } // namespace cc |
| 132 | 133 |
| 133 #endif // CC_RASTER_ONE_COPY_RASTER_BUFFER_PROVIDER_H_ | 134 #endif // CC_RASTER_ONE_COPY_RASTER_BUFFER_PROVIDER_H_ |
| OLD | NEW |