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 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
95 DISALLOW_COPY_AND_ASSIGN(RasterBufferImpl); | 95 DISALLOW_COPY_AND_ASSIGN(RasterBufferImpl); |
96 }; | 96 }; |
97 | 97 |
98 void PlaybackToStagingBuffer( | 98 void PlaybackToStagingBuffer( |
99 StagingBuffer* staging_buffer, | 99 StagingBuffer* staging_buffer, |
100 const Resource* resource, | 100 const Resource* resource, |
101 const RasterSource* raster_source, | 101 const RasterSource* raster_source, |
102 const gfx::Rect& raster_full_rect, | 102 const gfx::Rect& raster_full_rect, |
103 const gfx::Rect& raster_dirty_rect, | 103 const gfx::Rect& raster_dirty_rect, |
104 float scale, | 104 float scale, |
105 sk_sp<SkColorSpace> 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 uint64_t previous_content_id, |
114 uint64_t new_content_id); | 114 uint64_t new_content_id); |
115 gfx::BufferUsage StagingBufferUsage() const; | 115 gfx::BufferUsage StagingBufferUsage() const; |
(...skipping 13 matching lines...) Expand all Loading... |
129 const bool async_worker_context_enabled_; | 129 const bool async_worker_context_enabled_; |
130 | 130 |
131 std::set<RasterBufferImpl*> pending_raster_buffers_; | 131 std::set<RasterBufferImpl*> pending_raster_buffers_; |
132 | 132 |
133 DISALLOW_COPY_AND_ASSIGN(OneCopyRasterBufferProvider); | 133 DISALLOW_COPY_AND_ASSIGN(OneCopyRasterBufferProvider); |
134 }; | 134 }; |
135 | 135 |
136 } // namespace cc | 136 } // namespace cc |
137 | 137 |
138 #endif // CC_RASTER_ONE_COPY_RASTER_BUFFER_PROVIDER_H_ | 138 #endif // CC_RASTER_ONE_COPY_RASTER_BUFFER_PROVIDER_H_ |
OLD | NEW |