diff options
author | dongseong.hwang@intel.com <dongseong.hwang@intel.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-07-22 09:04:32 +0000 |
---|---|---|
committer | dongseong.hwang@intel.com <dongseong.hwang@intel.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-07-22 09:04:32 +0000 |
commit | c77f27240138492a287c1e7e984ff170da7ec3f2 (patch) | |
tree | 27c49bf749faf27954b3b0af9520110a466ce520 /cc/resources | |
parent | d4635c48212383f9c50e913e027ba6a44815dbae (diff) | |
download | chromium_src-c77f27240138492a287c1e7e984ff170da7ec3f2.zip chromium_src-c77f27240138492a287c1e7e984ff170da7ec3f2.tar.gz chromium_src-c77f27240138492a287c1e7e984ff170da7ec3f2.tar.bz2 |
Making use of bindless variants mailbox produce/consume on remainders.
Increase performance of RenderPass drawing in compositor and Video-WebGL copy.
BUG=375501
Review URL: https://codereview.chromium.org/371463009
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@284652 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'cc/resources')
-rw-r--r-- | cc/resources/video_resource_updater.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/cc/resources/video_resource_updater.cc b/cc/resources/video_resource_updater.cc index c20d4b1..a5c3121 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) |