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

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

Issue 2555743004: Delay activation/draw on GPU tile work completion (Closed)
Patch Set: rebase compile fix Created 3 years, 10 months 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
« no previous file with comments | « cc/raster/gpu_raster_buffer_provider.cc ('k') | cc/raster/one_copy_raster_buffer_provider.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_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
34 // Overridden from RasterBufferProvider: 34 // Overridden from RasterBufferProvider:
35 std::unique_ptr<RasterBuffer> AcquireBufferForRaster( 35 std::unique_ptr<RasterBuffer> AcquireBufferForRaster(
36 const Resource* resource, 36 const Resource* resource,
37 uint64_t resource_content_id, 37 uint64_t resource_content_id,
38 uint64_t previous_content_id) override; 38 uint64_t previous_content_id) override;
39 void ReleaseBufferForRaster(std::unique_ptr<RasterBuffer> buffer) override; 39 void ReleaseBufferForRaster(std::unique_ptr<RasterBuffer> buffer) override;
40 void OrderingBarrier() override; 40 void OrderingBarrier() override;
41 ResourceFormat GetResourceFormat(bool must_support_alpha) const override; 41 ResourceFormat GetResourceFormat(bool must_support_alpha) const override;
42 bool IsResourceSwizzleRequired(bool must_support_alpha) const override; 42 bool IsResourceSwizzleRequired(bool must_support_alpha) const override;
43 bool CanPartialRasterIntoProvidedResource() const override; 43 bool CanPartialRasterIntoProvidedResource() const override;
44 bool IsResourceReadyToDraw(ResourceId id) const override;
45 uint64_t SetReadyToDrawCallback(
46 const ResourceProvider::ResourceIdArray& resource_ids,
47 const base::Closure& callback,
48 uint64_t pending_callback_id) const override;
44 void Shutdown() override; 49 void Shutdown() override;
45 50
46 // Playback raster source and copy result into |resource|. 51 // Playback raster source and copy result into |resource|.
47 void PlaybackAndCopyOnWorkerThread( 52 void PlaybackAndCopyOnWorkerThread(
48 const Resource* resource, 53 const Resource* resource,
49 ResourceProvider::ScopedWriteLockGL* resource_lock, 54 ResourceProvider::ScopedWriteLockGL* resource_lock,
50 const gpu::SyncToken& sync_token, 55 const gpu::SyncToken& sync_token,
51 const RasterSource* raster_source, 56 const RasterSource* raster_source,
52 const gfx::Rect& raster_full_rect, 57 const gfx::Rect& raster_full_rect,
53 const gfx::Rect& raster_dirty_rect, 58 const gfx::Rect& raster_dirty_rect,
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
124 const bool async_worker_context_enabled_; 129 const bool async_worker_context_enabled_;
125 130
126 std::set<RasterBufferImpl*> pending_raster_buffers_; 131 std::set<RasterBufferImpl*> pending_raster_buffers_;
127 132
128 DISALLOW_COPY_AND_ASSIGN(OneCopyRasterBufferProvider); 133 DISALLOW_COPY_AND_ASSIGN(OneCopyRasterBufferProvider);
129 }; 134 };
130 135
131 } // namespace cc 136 } // namespace cc
132 137
133 #endif // CC_RASTER_ONE_COPY_RASTER_BUFFER_PROVIDER_H_ 138 #endif // CC_RASTER_ONE_COPY_RASTER_BUFFER_PROVIDER_H_
OLDNEW
« no previous file with comments | « cc/raster/gpu_raster_buffer_provider.cc ('k') | cc/raster/one_copy_raster_buffer_provider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698