| 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 23 matching lines...) Expand all Loading... |
| 34 | 34 |
| 35 // Overridden from RasterBufferProvider: | 35 // Overridden from RasterBufferProvider: |
| 36 std::unique_ptr<RasterBuffer> AcquireBufferForRaster( | 36 std::unique_ptr<RasterBuffer> AcquireBufferForRaster( |
| 37 const Resource* resource, | 37 const Resource* resource, |
| 38 uint64_t resource_content_id, | 38 uint64_t resource_content_id, |
| 39 uint64_t previous_content_id) override; | 39 uint64_t previous_content_id) override; |
| 40 void ReleaseBufferForRaster(std::unique_ptr<RasterBuffer> buffer) override; | 40 void ReleaseBufferForRaster(std::unique_ptr<RasterBuffer> buffer) override; |
| 41 void OrderingBarrier() override; | 41 void OrderingBarrier() override; |
| 42 ResourceFormat GetResourceFormat(bool must_support_alpha) const override; | 42 ResourceFormat GetResourceFormat(bool must_support_alpha) const override; |
| 43 bool IsResourceSwizzleRequired(bool must_support_alpha) const override; | 43 bool IsResourceSwizzleRequired(bool must_support_alpha) const override; |
| 44 bool IsPartialRasterSupported() const override; | 44 bool CanPartialRasterIntoProvidedResource() const override; |
| 45 void Shutdown() override; | 45 void Shutdown() override; |
| 46 | 46 |
| 47 // Playback raster source and copy result into |resource|. | 47 // Playback raster source and copy result into |resource|. |
| 48 void PlaybackAndCopyOnWorkerThread( | 48 void PlaybackAndCopyOnWorkerThread( |
| 49 const Resource* resource, | 49 const Resource* resource, |
| 50 ResourceProvider::ScopedWriteLockGL* resource_lock, | 50 ResourceProvider::ScopedWriteLockGL* resource_lock, |
| 51 const gpu::SyncToken& sync_token, | 51 const gpu::SyncToken& sync_token, |
| 52 const RasterSource* raster_source, | 52 const RasterSource* raster_source, |
| 53 const gfx::Rect& raster_full_rect, | 53 const gfx::Rect& raster_full_rect, |
| 54 const gfx::Rect& raster_dirty_rect, | 54 const gfx::Rect& raster_dirty_rect, |
| (...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 123 const bool async_worker_context_enabled_; | 123 const bool async_worker_context_enabled_; |
| 124 | 124 |
| 125 std::set<RasterBufferImpl*> pending_raster_buffers_; | 125 std::set<RasterBufferImpl*> pending_raster_buffers_; |
| 126 | 126 |
| 127 DISALLOW_COPY_AND_ASSIGN(OneCopyRasterBufferProvider); | 127 DISALLOW_COPY_AND_ASSIGN(OneCopyRasterBufferProvider); |
| 128 }; | 128 }; |
| 129 | 129 |
| 130 } // namespace cc | 130 } // namespace cc |
| 131 | 131 |
| 132 #endif // CC_RASTER_ONE_COPY_RASTER_BUFFER_PROVIDER_H_ | 132 #endif // CC_RASTER_ONE_COPY_RASTER_BUFFER_PROVIDER_H_ |
| OLD | NEW |