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

Unified Diff: cc/resources/video_resource_updater.cc

Issue 371463009: Making use of bindless variants mailbox produce/consume on remainders. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix cc tests Created 6 years, 5 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 | « cc/output/gl_renderer.cc ('k') | cc/test/test_gles2_interface.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/resources/video_resource_updater.cc
diff --git a/cc/resources/video_resource_updater.cc b/cc/resources/video_resource_updater.cc
index c20d4b143e2ea2e7b388ffd870a28ccb5165b901..a5c31211eb657299b20ec649d8b7a5c5281f7b9c 100644
--- a/cc/resources/video_resource_updater.cc
+++ b/cc/resources/video_resource_updater.cc
@@ -190,9 +190,9 @@ VideoFrameExternalResources VideoResourceUpdater::CreateForSoftwarePlanes(
GLC(gl, gl->GenMailboxCHROMIUM(mailbox.name));
ResourceProvider::ScopedWriteLockGL lock(resource_provider_,
resource_id);
- GLC(gl, gl->BindTexture(GL_TEXTURE_2D, lock.texture_id()));
- GLC(gl, gl->ProduceTextureCHROMIUM(GL_TEXTURE_2D, mailbox.name));
- GLC(gl, gl->BindTexture(GL_TEXTURE_2D, 0));
+ GLC(gl,
+ gl->ProduceTextureDirectCHROMIUM(
+ lock.texture_id(), GL_TEXTURE_2D, mailbox.name));
}
if (resource_id)
« no previous file with comments | « cc/output/gl_renderer.cc ('k') | cc/test/test_gles2_interface.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698