// static pages and IE Fish page. (black screen issue was seen on Tizen TV
context_provider_->ContextGL()->Flush();
-#if !defined(EWK_BRINGUP)
-// [M48_2564] Temporary disabling the codes for switching to new chromium
-// FIXME: http://web.sec.samsung.net/bugzilla/show_bug.cgi?id=15389
- frame->gl_frame_data->sync_point =
+ uint32 sync_point =
context_provider_->ContextGL()->InsertSyncPointCHROMIUM();
-#endif
+
+ frame->gl_frame_data->sync_token = gpu::SyncToken(sync_point);
base::Closure closure =
base::Bind(&NativeOutputSurfaceEfl::OnSwapAck, base::Unretained(this),
base::Passed(&frame->gl_frame_data));
- uint32 sync_point =
- context_provider_->ContextGL()->InsertSyncPointCHROMIUM();
+
context_provider()->ContextSupport()->SignalSyncPoint(sync_point, closure);
client_->DidSwapBuffers();
TransferableFrame& texture = returned_textures_.front();
if (texture.size == surface_size_) {
current_backing_ = texture;
- if (current_backing_.sync_point)
- gl->WaitSyncPointCHROMIUM(current_backing_.sync_point);
+ if (current_backing_.sync_token.HasData())
+ gl->WaitSyncTokenCHROMIUM(
+ current_backing_.sync_token.GetConstData());
returned_textures_.pop();
break;
}
}
}
DCHECK(it != pending_textures_.end());
-#if !defined(EWK_BRINGUP)
-// [M48_2564] Temporary disabling the codes for switching to new chromium
-// FIXME: http://web.sec.samsung.net/bugzilla/show_bug.cgi?id=15389
- it->sync_point = gl_frame_data->sync_point;
-#endif
+ it->sync_token = gl_frame_data->sync_token;
if (!is_backbuffer_discarded_) {
returned_textures_.push(*it);
uint32 sync_point =
context_provider_->ContextGL()->InsertSyncPointCHROMIUM();
-#if !defined(EWK_BRINGUP)
-// [M48_2564] Temporary disabling the codes for switching to new chromium
-// FIXME: http://web.sec.samsung.net/bugzilla/show_bug.cgi?id=15389
- frame->gl_frame_data->sync_point = sync_point;
-#endif
+ frame->gl_frame_data->sync_token = gpu::SyncToken(sync_point);
base::Closure closure =
base::Bind(&MailboxOutputSurfaceEfl::OnSwapAck, base::Unretained(this),
private:
struct TransferableFrame {
- TransferableFrame() : texture_id(0), sync_point(0) {}
+ TransferableFrame() : texture_id(0) {}
TransferableFrame(uint32 texture_id,
const gpu::Mailbox& mailbox,
const gfx::Size size)
- : texture_id(texture_id), mailbox(mailbox), size(size), sync_point(0) {}
+ : texture_id(texture_id), mailbox(mailbox), size(size) {}
uint32 texture_id;
gpu::Mailbox mailbox;
gfx::Size size;
- uint32 sync_point;
+ gpu::SyncToken sync_token;
};
content::CommandBufferProxyImpl* GetCommandBufferProxy() {
content::ContextProviderCommandBuffer* provider_command_buffer =