Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(215)

Side by Side Diff: cc/raster/gpu_raster_buffer_provider.h

Issue 2555743004: Delay activation/draw on GPU tile work completion (Closed)
Patch Set: cleanup Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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 uint64_t SetReadyToDrawCallback(
39 const ResourceProvider::ResourceIdArray& resource_ids,
40 const base::Callback<void(uint64_t)>& callback,
41 uint64_t pending_callback_id) const override;
38 void Shutdown() override; 42 void Shutdown() override;
39 43
40 void PlaybackOnWorkerThread( 44 void PlaybackOnWorkerThread(
41 ResourceProvider::ScopedWriteLockGL* resource_lock, 45 ResourceProvider::ScopedWriteLockGL* resource_lock,
42 const gpu::SyncToken& sync_token, 46 const gpu::SyncToken& sync_token,
43 bool resource_has_previous_content, 47 bool resource_has_previous_content,
44 const RasterSource* raster_source, 48 const RasterSource* raster_source,
45 const gfx::Rect& raster_full_rect, 49 const gfx::Rect& raster_full_rect,
46 const gfx::Rect& raster_dirty_rect, 50 const gfx::Rect& raster_dirty_rect,
47 uint64_t new_content_id, 51 uint64_t new_content_id,
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
89 const bool async_worker_context_enabled_; 93 const bool async_worker_context_enabled_;
90 94
91 std::set<RasterBufferImpl*> pending_raster_buffers_; 95 std::set<RasterBufferImpl*> pending_raster_buffers_;
92 96
93 DISALLOW_COPY_AND_ASSIGN(GpuRasterBufferProvider); 97 DISALLOW_COPY_AND_ASSIGN(GpuRasterBufferProvider);
94 }; 98 };
95 99
96 } // namespace cc 100 } // namespace cc
97 101
98 #endif // CC_RASTER_GPU_RASTER_BUFFER_PROVIDER_H_ 102 #endif // CC_RASTER_GPU_RASTER_BUFFER_PROVIDER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698