Cherry-pick: Android Webview: Skip managed resources in mailbox sync

Clean cherry-pick of chromium crrev.com/286800

BUG: 16550863

Change-Id: I69d264e30d5278d365cf366bffaaeffb0e116c71
diff --git a/gpu/command_buffer/service/mailbox_synchronizer.cc b/gpu/command_buffer/service/mailbox_synchronizer.cc
index d25368a..eac31f9 100644
--- a/gpu/command_buffer/service/mailbox_synchronizer.cc
+++ b/gpu/command_buffer/service/mailbox_synchronizer.cc
@@ -166,6 +166,11 @@
       UpdateTextureLocked(texture, texture_version);
 
     } else {
+      // Skip compositor resources/tile textures.
+      // TODO: Remove this, see crbug.com/399226.
+      if (texture->pool() == GL_TEXTURE_POOL_MANAGED_CHROMIUM)
+        continue;
+
       linked_ptr<TextureGroup> group = make_linked_ptr(new TextureGroup(
           TextureDefinition(target_name.target, texture, 1, NULL)));