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

Unified Diff: components/mus/gles2/command_buffer_local.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: Reverted mojo readme, changed wait() to take a pointer Created 5 years, 2 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
« no previous file with comments | « components/mus/gles2/command_buffer_driver.cc ('k') | components/mus/gles2/command_buffer_local.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/mus/gles2/command_buffer_local.h
diff --git a/components/mus/gles2/command_buffer_local.h b/components/mus/gles2/command_buffer_local.h
index 92a7966110f12220cdb2911b84309feaab675a5d..75c7bc47da9707a11a9e28e297e55c3df61c4025 100644
--- a/components/mus/gles2/command_buffer_local.h
+++ b/components/mus/gles2/command_buffer_local.h
@@ -73,6 +73,9 @@ class CommandBufferLocal : public gpu::GpuControl {
bool IsGpuChannelLost() override;
gpu::CommandBufferNamespace GetNamespaceID() const override;
uint64_t GetCommandBufferID() const override;
+ uint64_t GenerateFenceSyncRelease() override;
+ bool IsFenceSyncRelease(uint64_t release) override;
+ bool IsFenceSyncFlushed(uint64_t release) override;
private:
void PumpCommands();
@@ -81,6 +84,10 @@ class CommandBufferLocal : public gpu::GpuControl {
void OnUpdateVSyncParameters(const base::TimeTicks timebase,
const base::TimeDelta interval);
bool OnWaitSyncPoint(uint32_t sync_point);
+ void OnFenceSyncRelease(uint64_t release);
+ bool OnWaitFenceSync(gpu::CommandBufferNamespace namespace_id,
+ uint64_t command_buffer_id,
+ uint64_t release);
void OnParseError();
void OnContextLost(uint32_t reason);
void OnSyncPointRetired();
@@ -94,6 +101,8 @@ class CommandBufferLocal : public gpu::GpuControl {
scoped_refptr<gfx::GLSurface> surface_;
CommandBufferLocalClient* client_;
+ uint64_t next_fence_sync_release_;
+
base::WeakPtrFactory<CommandBufferLocal> weak_factory_;
DISALLOW_COPY_AND_ASSIGN(CommandBufferLocal);
« no previous file with comments | « components/mus/gles2/command_buffer_driver.cc ('k') | components/mus/gles2/command_buffer_local.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698