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

Unified Diff: gpu/command_buffer/service/in_process_command_buffer.h

Issue 782583003: List sync points to wait on in AsyncFlush message Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 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 side-by-side diff with in-line comments
Download patch
Index: gpu/command_buffer/service/in_process_command_buffer.h
diff --git a/gpu/command_buffer/service/in_process_command_buffer.h b/gpu/command_buffer/service/in_process_command_buffer.h
index b1abd4c1d7b0cae0482ace63e9a554a43c8c814c..c4a665aa7426453e5919cdddc2c3fee6b1bc816c 100644
--- a/gpu/command_buffer/service/in_process_command_buffer.h
+++ b/gpu/command_buffer/service/in_process_command_buffer.h
@@ -90,7 +90,7 @@ class GPU_EXPORT InProcessCommandBuffer : public CommandBuffer,
bool Initialize() override;
State GetLastState() override;
int32 GetLastToken() override;
- void Flush(int32 put_offset) override;
+ void Flush(int32 put_offset, const std::vector<uint32>& sync_points) override;
void WaitForTokenInRange(int32 start, int32 end) override;
void WaitForGetOffsetInRange(int32 start, int32 end) override;
void SetGetBuffer(int32 shm_id) override;
@@ -182,7 +182,8 @@ class GPU_EXPORT InProcessCommandBuffer : public CommandBuffer,
bool InitializeOnGpuThread(const InitializeOnGpuThreadParams& params);
bool DestroyOnGpuThread();
- void FlushOnGpuThread(int32 put_offset);
+ void FlushOnGpuThread(int32 put_offset,
+ const std::vector<uint32>& sync_points);
void ScheduleIdleWorkOnGpuThread();
uint32 CreateStreamTextureOnGpuThread(uint32 client_texture_id);
bool MakeCurrent();

Powered by Google App Engine
This is Rietveld 408576698