Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(749)

Unified Diff: content/renderer/media/renderer_gpu_video_accelerator_factories.cc

Issue 23567012: Use fast path of mailbox generation in RGVAF::CreateTextures. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: add comment Created 7 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/media/renderer_gpu_video_accelerator_factories.cc
diff --git a/content/renderer/media/renderer_gpu_video_accelerator_factories.cc b/content/renderer/media/renderer_gpu_video_accelerator_factories.cc
index f586497f484a8b83135f7ec82c213096ddf76aac..c373d882792b1b961e495ea9ce2d41bddd6da651 100644
--- a/content/renderer/media/renderer_gpu_video_accelerator_factories.cc
+++ b/content/renderer/media/renderer_gpu_video_accelerator_factories.cc
@@ -223,7 +223,9 @@ void RendererGpuVideoAcceleratorFactories::AsyncCreateTextures(
GL_UNSIGNED_BYTE,
NULL);
}
- gles2->GenMailboxCHROMIUM(created_texture_mailboxes_[i].name);
+ // GLES2Implementation doesn't currently have the fast path of mailbox
+ // generation, but WebGraphicsContext3DCommandBufferImpl does.
+ context_->genMailboxCHROMIUM(created_texture_mailboxes_[i].name);
gles2->ProduceTextureCHROMIUM(texture_target,
created_texture_mailboxes_[i].name);
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698