| Index: content/common/gpu/client/gl_helper.cc
|
| diff --git a/content/common/gpu/client/gl_helper.cc b/content/common/gpu/client/gl_helper.cc
|
| index 88c649946235e6bd295a4ea0dfb3422f9991e0ea..08e73484c0b290cd259b488cabb9f5b6016a1748 100644
|
| --- a/content/common/gpu/client/gl_helper.cc
|
| +++ b/content/common/gpu/client/gl_helper.cc
|
| @@ -954,6 +954,12 @@ void GLHelper::DeleteTexture(GLuint texture_id) {
|
|
|
| uint32 GLHelper::InsertSyncPoint() { return gl_->InsertSyncPointCHROMIUM(); }
|
|
|
| +void GLHelper::GenerateSyncToken(gpu::SyncToken* sync_token) {
|
| + const uint64_t fence_sync = gl_->InsertFenceSyncCHROMIUM();
|
| + gl_->Flush();
|
| + gl_->GenSyncTokenCHROMIUM(fence_sync, sync_token->GetData());
|
| +}
|
| +
|
| void GLHelper::WaitSyncToken(const gpu::SyncToken& sync_token) {
|
| gl_->WaitSyncTokenCHROMIUM(sync_token.GetConstData());
|
| }
|
|
|