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

Unified Diff: content/common/gpu/gpu_command_buffer_stub.h

Issue 1331843005: Implemented new fence syncs which replaces the old sync points. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Forgot to remove cmd buffer helper functios and replace with gpu control ones Created 5 years, 3 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 side-by-side diff with in-line comments
Download patch
Index: content/common/gpu/gpu_command_buffer_stub.h
diff --git a/content/common/gpu/gpu_command_buffer_stub.h b/content/common/gpu/gpu_command_buffer_stub.h
index eef49f20ec06a455a9d096f8ef548df91d66b06a..ba1a7acbfce5c9ebc5fdf3e0f08e1004cc78ebc2 100644
--- a/content/common/gpu/gpu_command_buffer_stub.h
+++ b/content/common/gpu/gpu_command_buffer_stub.h
@@ -208,6 +208,14 @@ class GpuCommandBufferStub
void OnSignalSyncPointAck(uint32 id);
void OnSignalQuery(uint32 query, uint32 id);
+ void OnFenceSyncRelease(uint32_t release);
+ bool OnWaitFenceSync(gpu::CommandBufferNamespace namespace_id,
+ uint64_t command_buffer_id,
+ uint32_t release);
+ void OnWaitFenceSyncCompleted(gpu::CommandBufferNamespace namespace_id,
+ uint64_t command_buffer_id,
+ uint32_t release);
+
void OnSetClientHasMemoryAllocationChangedCallback(bool has_callback);
void OnCreateImage(int32 id,
@@ -241,7 +249,10 @@ class GpuCommandBufferStub
bool CheckContextLost();
void CheckCompleteWaits();
- void PullTextureUpdates(uint32 sync_point);
+ void PullTextureUpdates(gpu::CommandBufferNamespace namespace_id,
+ uint64_t command_buffer_id,
+ uint32_t release);
+
// The lifetime of objects of this class is managed by a GpuChannel. The
// GpuChannels destroy all the GpuCommandBufferStubs that they own when they

Powered by Google App Engine
This is Rietveld 408576698