| 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 15 matching lines...) Expand all Loading... |
| 26 bool async_worker_context_enabled); | 26 bool async_worker_context_enabled); |
| 27 ~GpuRasterBufferProvider() override; | 27 ~GpuRasterBufferProvider() override; |
| 28 | 28 |
| 29 // Overridden from RasterBufferProvider: | 29 // Overridden from RasterBufferProvider: |
| 30 std::unique_ptr<RasterBuffer> AcquireBufferForRaster( | 30 std::unique_ptr<RasterBuffer> AcquireBufferForRaster( |
| 31 const Resource* resource, | 31 const Resource* resource, |
| 32 uint64_t resource_content_id, | 32 uint64_t resource_content_id, |
| 33 uint64_t previous_content_id) override; | 33 uint64_t previous_content_id) override; |
| 34 void ReleaseBufferForRaster(std::unique_ptr<RasterBuffer> buffer) override; | 34 void ReleaseBufferForRaster(std::unique_ptr<RasterBuffer> buffer) override; |
| 35 void OrderingBarrier() override; | 35 void OrderingBarrier() override; |
| 36 void Flush() override; |
| 36 ResourceFormat GetResourceFormat(bool must_support_alpha) const override; | 37 ResourceFormat GetResourceFormat(bool must_support_alpha) const override; |
| 37 bool IsResourceSwizzleRequired(bool must_support_alpha) const override; | 38 bool IsResourceSwizzleRequired(bool must_support_alpha) const override; |
| 38 bool CanPartialRasterIntoProvidedResource() const override; | 39 bool CanPartialRasterIntoProvidedResource() const override; |
| 39 bool IsResourceReadyToDraw(ResourceId id) const override; | 40 bool IsResourceReadyToDraw(ResourceId id) const override; |
| 40 uint64_t SetReadyToDrawCallback( | 41 uint64_t SetReadyToDrawCallback( |
| 41 const ResourceProvider::ResourceIdArray& resource_ids, | 42 const ResourceProvider::ResourceIdArray& resource_ids, |
| 42 const base::Closure& callback, | 43 const base::Closure& callback, |
| 43 uint64_t pending_callback_id) const override; | 44 uint64_t pending_callback_id) const override; |
| 44 void Shutdown() override; | 45 void Shutdown() override; |
| 45 | 46 |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 96 const bool async_worker_context_enabled_; | 97 const bool async_worker_context_enabled_; |
| 97 | 98 |
| 98 std::set<RasterBufferImpl*> pending_raster_buffers_; | 99 std::set<RasterBufferImpl*> pending_raster_buffers_; |
| 99 | 100 |
| 100 DISALLOW_COPY_AND_ASSIGN(GpuRasterBufferProvider); | 101 DISALLOW_COPY_AND_ASSIGN(GpuRasterBufferProvider); |
| 101 }; | 102 }; |
| 102 | 103 |
| 103 } // namespace cc | 104 } // namespace cc |
| 104 | 105 |
| 105 #endif // CC_RASTER_GPU_RASTER_BUFFER_PROVIDER_H_ | 106 #endif // CC_RASTER_GPU_RASTER_BUFFER_PROVIDER_H_ |
| OLD | NEW |