| Index: content/renderer/child_frame_compositing_helper.cc
|
| diff --git a/content/renderer/child_frame_compositing_helper.cc b/content/renderer/child_frame_compositing_helper.cc
|
| index 433d652175429289ea8c3b928d790aaf3c21f70e..4979954330d7e3e3a4c53b12de9ff1191bbbf130 100644
|
| --- a/content/renderer/child_frame_compositing_helper.cc
|
| +++ b/content/renderer/child_frame_compositing_helper.cc
|
| @@ -204,7 +204,7 @@ void ChildFrameCompositingHelper::CheckSizeAndAdjustLayerProperties(
|
| }
|
|
|
| void ChildFrameCompositingHelper::MailboxReleased(SwapBuffersInfo mailbox,
|
| - unsigned sync_point,
|
| + uint32 sync_point,
|
| bool lost_resource) {
|
| if (mailbox.type == SOFTWARE_COMPOSITOR_FRAME) {
|
| delete mailbox.shared_memory;
|
| @@ -288,7 +288,7 @@ void ChildFrameCompositingHelper::ChildFrameGone() {
|
|
|
| void ChildFrameCompositingHelper::OnBuffersSwappedPrivate(
|
| const SwapBuffersInfo& mailbox,
|
| - unsigned sync_point,
|
| + uint32 sync_point,
|
| float device_scale_factor) {
|
| DCHECK(!delegated_layer_.get());
|
| // If these mismatch, we are either just starting up, GPU process crashed or
|
| @@ -351,10 +351,12 @@ void ChildFrameCompositingHelper::OnBuffersSwappedPrivate(
|
| base::Bind(&ChildFrameCompositingHelper::MailboxReleased,
|
| scoped_refptr<ChildFrameCompositingHelper>(this),
|
| mailbox)).Pass();
|
| - if (is_software_frame)
|
| + if (is_software_frame) {
|
| texture_mailbox = cc::TextureMailbox(mailbox.shared_memory, mailbox.size);
|
| - else
|
| - texture_mailbox = cc::TextureMailbox(mailbox.name, sync_point);
|
| + } else {
|
| + texture_mailbox =
|
| + cc::TextureMailbox(mailbox.name, GL_TEXTURE_2D, sync_point);
|
| + }
|
| }
|
|
|
| texture_layer_->SetFlipped(!is_software_frame);
|
|
|