diff options
Diffstat (limited to 'gpu/command_buffer/service/mailbox_manager_sync.cc')
-rw-r--r-- | gpu/command_buffer/service/mailbox_manager_sync.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gpu/command_buffer/service/mailbox_manager_sync.cc b/gpu/command_buffer/service/mailbox_manager_sync.cc index a48d032..7463f92 100644 --- a/gpu/command_buffer/service/mailbox_manager_sync.cc +++ b/gpu/command_buffer/service/mailbox_manager_sync.cc @@ -273,7 +273,7 @@ void MailboxManagerSync::UpdateDefinitionLocked( 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 @@ void MailboxManagerSync::UpdateDefinitionLocked( 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) { |