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 16 matching lines...) Expand all Loading... |
27 | 27 |
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 IsPartialRasterSupported() const override; | 37 bool CanPartialRasterIntoProvidedResource() const override; |
38 void Shutdown() override; | 38 void Shutdown() override; |
39 | 39 |
40 void PlaybackOnWorkerThread( | 40 void PlaybackOnWorkerThread( |
41 ResourceProvider::ScopedWriteLockGL* resource_lock, | 41 ResourceProvider::ScopedWriteLockGL* resource_lock, |
42 const gpu::SyncToken& sync_token, | 42 const gpu::SyncToken& sync_token, |
43 bool resource_has_previous_content, | 43 bool resource_has_previous_content, |
44 const RasterSource* raster_source, | 44 const RasterSource* raster_source, |
45 const gfx::Rect& raster_full_rect, | 45 const gfx::Rect& raster_full_rect, |
46 const gfx::Rect& raster_dirty_rect, | 46 const gfx::Rect& raster_dirty_rect, |
47 uint64_t new_content_id, | 47 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_; | 89 const bool async_worker_context_enabled_; |
90 | 90 |
91 std::set<RasterBufferImpl*> pending_raster_buffers_; | 91 std::set<RasterBufferImpl*> pending_raster_buffers_; |
92 | 92 |
93 DISALLOW_COPY_AND_ASSIGN(GpuRasterBufferProvider); | 93 DISALLOW_COPY_AND_ASSIGN(GpuRasterBufferProvider); |
94 }; | 94 }; |
95 | 95 |
96 } // namespace cc | 96 } // namespace cc |
97 | 97 |
98 #endif // CC_RASTER_GPU_RASTER_BUFFER_PROVIDER_H_ | 98 #endif // CC_RASTER_GPU_RASTER_BUFFER_PROVIDER_H_ |
OLD | NEW |