| Index: components/mus/gles2/command_buffer_local.cc
|
| diff --git a/components/mus/gles2/command_buffer_local.cc b/components/mus/gles2/command_buffer_local.cc
|
| index 27442cb3834f78d4e51ea8d1198a36339121a765..bd89db6aa309abdd1d5e9820b0e5b0779084700b 100644
|
| --- a/components/mus/gles2/command_buffer_local.cc
|
| +++ b/components/mus/gles2/command_buffer_local.cc
|
| @@ -32,6 +32,7 @@ CommandBufferLocal::CommandBufferLocal(CommandBufferLocalClient* client,
|
| : widget_(widget),
|
| gpu_state_(gpu_state),
|
| client_(client),
|
| + next_fence_sync_release_(1),
|
| weak_factory_(this) {}
|
|
|
| CommandBufferLocal::~CommandBufferLocal() {
|
| @@ -220,6 +221,18 @@ uint64_t CommandBufferLocal::GetCommandBufferID() const {
|
| return 0;
|
| }
|
|
|
| +uint32_t CommandBufferLocal::GenerateFenceSyncRelease() {
|
| + return next_fence_sync_release_++;
|
| +}
|
| +
|
| +bool CommandBufferLocal::IsFenceSyncRelease(uint32_t release) {
|
| + return release > 0 && release < next_fence_sync_release_;
|
| +}
|
| +
|
| +bool CommandBufferLocal::IsFenceSyncFlushed(uint32_t release) {
|
| + return IsFenceSyncRelease(release);
|
| +}
|
| +
|
| void CommandBufferLocal::PumpCommands() {
|
| if (!decoder_->MakeCurrent()) {
|
| command_buffer_->SetContextLostReason(decoder_->GetContextLostReason());
|
|
|