| 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_GPU_RASTER_BUFFER_PROVIDER_H_ | 5 #ifndef CC_RASTER_GPU_RASTER_BUFFER_PROVIDER_H_ |
| 6 #define CC_RASTER_GPU_RASTER_BUFFER_PROVIDER_H_ | 6 #define CC_RASTER_GPU_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 17 matching lines...) Expand all Loading... |
| 28 // Overridden from RasterBufferProvider: | 28 // Overridden from RasterBufferProvider: |
| 29 std::unique_ptr<RasterBuffer> AcquireBufferForRaster( | 29 std::unique_ptr<RasterBuffer> AcquireBufferForRaster( |
| 30 const Resource* resource, | 30 const Resource* resource, |
| 31 uint64_t resource_content_id, | 31 uint64_t resource_content_id, |
| 32 uint64_t previous_content_id) override; | 32 uint64_t previous_content_id) override; |
| 33 void ReleaseBufferForRaster(std::unique_ptr<RasterBuffer> buffer) override; | 33 void ReleaseBufferForRaster(std::unique_ptr<RasterBuffer> buffer) override; |
| 34 void OrderingBarrier() override; | 34 void OrderingBarrier() override; |
| 35 ResourceFormat GetResourceFormat(bool must_support_alpha) const override; | 35 ResourceFormat GetResourceFormat(bool must_support_alpha) const override; |
| 36 bool IsResourceSwizzleRequired(bool must_support_alpha) const override; | 36 bool IsResourceSwizzleRequired(bool must_support_alpha) const override; |
| 37 bool CanPartialRasterIntoProvidedResource() const override; | 37 bool CanPartialRasterIntoProvidedResource() const override; |
| 38 bool IsResourceReadyToDraw(ResourceId id) const override; |
| 39 uint64_t SetReadyToDrawCallback( |
| 40 const ResourceProvider::ResourceIdArray& resource_ids, |
| 41 const base::Closure& callback, |
| 42 uint64_t pending_callback_id) const override; |
| 38 void Shutdown() override; | 43 void Shutdown() override; |
| 39 | 44 |
| 40 void PlaybackOnWorkerThread( | 45 void PlaybackOnWorkerThread( |
| 41 ResourceProvider::ScopedWriteLockGL* resource_lock, | 46 ResourceProvider::ScopedWriteLockGL* resource_lock, |
| 42 const gpu::SyncToken& sync_token, | 47 const gpu::SyncToken& sync_token, |
| 43 bool resource_has_previous_content, | 48 bool resource_has_previous_content, |
| 44 const RasterSource* raster_source, | 49 const RasterSource* raster_source, |
| 45 const gfx::Rect& raster_full_rect, | 50 const gfx::Rect& raster_full_rect, |
| 46 const gfx::Rect& raster_dirty_rect, | 51 const gfx::Rect& raster_dirty_rect, |
| 47 uint64_t new_content_id, | 52 uint64_t new_content_id, |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 89 const bool async_worker_context_enabled_; | 94 const bool async_worker_context_enabled_; |
| 90 | 95 |
| 91 std::set<RasterBufferImpl*> pending_raster_buffers_; | 96 std::set<RasterBufferImpl*> pending_raster_buffers_; |
| 92 | 97 |
| 93 DISALLOW_COPY_AND_ASSIGN(GpuRasterBufferProvider); | 98 DISALLOW_COPY_AND_ASSIGN(GpuRasterBufferProvider); |
| 94 }; | 99 }; |
| 95 | 100 |
| 96 } // namespace cc | 101 } // namespace cc |
| 97 | 102 |
| 98 #endif // CC_RASTER_GPU_RASTER_BUFFER_PROVIDER_H_ | 103 #endif // CC_RASTER_GPU_RASTER_BUFFER_PROVIDER_H_ |
| OLD | NEW |