| Index: content/renderer/pepper/pepper_platform_context_3d.cc
|
| ===================================================================
|
| --- content/renderer/pepper/pepper_platform_context_3d.cc (revision 255442)
|
| +++ content/renderer/pepper/pepper_platform_context_3d.cc (working copy)
|
| @@ -104,6 +104,7 @@
|
| if (!command_buffer_->ProduceFrontBuffer(mailbox))
|
| return false;
|
| mailbox_ = mailbox;
|
| + sync_point_ = command_buffer_->InsertSyncPoint();
|
|
|
| command_buffer_->SetChannelErrorCallback(
|
| base::Bind(&PlatformContext3D::OnContextLost,
|
| @@ -115,10 +116,17 @@
|
| return true;
|
| }
|
|
|
| -void PlatformContext3D::GetBackingMailbox(gpu::Mailbox* mailbox) {
|
| +void PlatformContext3D::GetBackingMailbox(gpu::Mailbox* mailbox,
|
| + uint32* sync_point) {
|
| *mailbox = mailbox_;
|
| + *sync_point = sync_point_;
|
| }
|
|
|
| +void PlatformContext3D::InsertSyncPointForBackingMailbox() {
|
| + DCHECK(command_buffer_);
|
| + sync_point_ = command_buffer_->InsertSyncPoint();
|
| +}
|
| +
|
| bool PlatformContext3D::IsOpaque() {
|
| DCHECK(command_buffer_);
|
| return !has_alpha_;
|
|
|