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

Side by Side Diff: mojo/gles2/command_buffer_client_impl.h

Issue 1559893003: Added method to synchronize command buffers within GpuControl. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: SynchronizeCommandBuffer() -> EnsureWorkVisible() Created 4 years, 11 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 | « gpu/gles2_conform_support/egl/display.cc ('k') | mojo/gles2/command_buffer_client_impl.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 MOJO_GLES2_COMMAND_BUFFER_CLIENT_IMPL_H_ 5 #ifndef MOJO_GLES2_COMMAND_BUFFER_CLIENT_IMPL_H_
6 #define MOJO_GLES2_COMMAND_BUFFER_CLIENT_IMPL_H_ 6 #define MOJO_GLES2_COMMAND_BUFFER_CLIENT_IMPL_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 unsigned internalformat, 69 unsigned internalformat,
70 unsigned usage) override; 70 unsigned usage) override;
71 uint32_t InsertSyncPoint() override; 71 uint32_t InsertSyncPoint() override;
72 uint32_t InsertFutureSyncPoint() override; 72 uint32_t InsertFutureSyncPoint() override;
73 void RetireSyncPoint(uint32_t sync_point) override; 73 void RetireSyncPoint(uint32_t sync_point) override;
74 void SignalSyncPoint(uint32_t sync_point, 74 void SignalSyncPoint(uint32_t sync_point,
75 const base::Closure& callback) override; 75 const base::Closure& callback) override;
76 void SignalQuery(uint32_t query, const base::Closure& callback) override; 76 void SignalQuery(uint32_t query, const base::Closure& callback) override;
77 void SetLock(base::Lock*) override; 77 void SetLock(base::Lock*) override;
78 bool IsGpuChannelLost() override; 78 bool IsGpuChannelLost() override;
79 void EnsureWorkVisible() override;
79 gpu::CommandBufferNamespace GetNamespaceID() const override; 80 gpu::CommandBufferNamespace GetNamespaceID() const override;
80 uint64_t GetCommandBufferID() const override; 81 uint64_t GetCommandBufferID() const override;
81 int32_t GetExtraCommandBufferData() const override; 82 int32_t GetExtraCommandBufferData() const override;
82 uint64_t GenerateFenceSyncRelease() override; 83 uint64_t GenerateFenceSyncRelease() override;
83 bool IsFenceSyncRelease(uint64_t release) override; 84 bool IsFenceSyncRelease(uint64_t release) override;
84 bool IsFenceSyncFlushed(uint64_t release) override; 85 bool IsFenceSyncFlushed(uint64_t release) override;
85 bool IsFenceSyncFlushReceived(uint64_t release) override; 86 bool IsFenceSyncFlushReceived(uint64_t release) override;
86 void SignalSyncToken(const gpu::SyncToken& sync_token, 87 void SignalSyncToken(const gpu::SyncToken& sync_token,
87 const base::Closure& callback) override; 88 const base::Closure& callback) override;
88 bool CanWaitUnverifiedSyncToken(const gpu::SyncToken* sync_token) override; 89 bool CanWaitUnverifiedSyncToken(const gpu::SyncToken* sync_token) override;
(...skipping 25 matching lines...) Expand all
114 115
115 uint64_t next_fence_sync_release_; 116 uint64_t next_fence_sync_release_;
116 uint64_t flushed_fence_sync_release_; 117 uint64_t flushed_fence_sync_release_;
117 118
118 const MojoAsyncWaiter* async_waiter_; 119 const MojoAsyncWaiter* async_waiter_;
119 }; 120 };
120 121
121 } // gles2 122 } // gles2
122 123
123 #endif // MOJO_GLES2_COMMAND_BUFFER_CLIENT_IMPL_H_ 124 #endif // MOJO_GLES2_COMMAND_BUFFER_CLIENT_IMPL_H_
OLDNEW
« no previous file with comments | « gpu/gles2_conform_support/egl/display.cc ('k') | mojo/gles2/command_buffer_client_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698