| Index: gpu/command_buffer/service/mailbox_manager_sync.cc
|
| diff --git a/gpu/command_buffer/service/mailbox_manager_sync.cc b/gpu/command_buffer/service/mailbox_manager_sync.cc
|
| index a48d032e6e2a28b18334ee6f2445c63cde509f12..7463f92bfdc78435ed2e7de8986c56522cc8b6a6 100644
|
| --- a/gpu/command_buffer/service/mailbox_manager_sync.cc
|
| +++ b/gpu/command_buffer/service/mailbox_manager_sync.cc
|
| @@ -273,7 +273,7 @@
|
| if (SkipTextureWorkarounds(texture))
|
| return;
|
|
|
| - gfx::GLImage* image = texture->GetLevelImage(texture->target(), 0);
|
| + gfx::GLImage* gl_image = texture->GetLevelImage(texture->target(), 0);
|
| TextureGroup* group = group_ref->group.get();
|
| const TextureDefinition& definition = group->GetDefinition();
|
| scoped_refptr<NativeImageBuffer> image_buffer = definition.image();
|
| @@ -287,14 +287,14 @@
|
| if (definition.Matches(texture))
|
| return;
|
|
|
| - DCHECK_IMPLIES(image, image_buffer.get());
|
| - if (image && !image_buffer->IsClient(image)) {
|
| + DCHECK_IMPLIES(gl_image, image_buffer.get());
|
| + if (gl_image && !image_buffer->IsClient(gl_image)) {
|
| LOG(ERROR) << "MailboxSync: Incompatible attachment";
|
| return;
|
| }
|
|
|
| group->SetDefinition(TextureDefinition(texture, ++group_ref->version,
|
| - image ? image_buffer : NULL));
|
| + gl_image ? image_buffer : NULL));
|
| }
|
|
|
| void MailboxManagerSync::PushTextureUpdates(const SyncToken& token) {
|
|
|