diff options
author | dongseong.hwang@intel.com <dongseong.hwang@intel.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-08-13 02:51:57 +0000 |
---|---|---|
committer | dongseong.hwang@intel.com <dongseong.hwang@intel.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-08-13 02:53:15 +0000 |
commit | 90f7d30d54c49306adf4aa591226b9c14a72081f (patch) | |
tree | 9f3793064158bba17264159766965c9b449ab9cc /win8/test/metro_registration_helper.cc | |
parent | 34beae1545678c03fe1d4898c6941b76aa6c1bc7 (diff) | |
download | chromium_src-90f7d30d54c49306adf4aa591226b9c14a72081f.zip chromium_src-90f7d30d54c49306adf4aa591226b9c14a72081f.tar.gz chromium_src-90f7d30d54c49306adf4aa591226b9c14a72081f.tar.bz2 |
gpu: Optimize and cleanup code used for CHROMIUM_copy_texture.
When source target and destination target is GL_TEXTURE_2D, we can use
glCopyTexImage2D() directly. It avoids gl state changes, program binding and
drawing call.
|dest_target| of DoCopyTexture() is always GL_TEXTURE_2D, so remove the
redundant argument.
Perf data are as follows:
Linux (Intel IvyBridge i7-3520M): 16 us vs 6 us -> 260% faster
Android (Nexus 5): 331.8 us vs 252.7 us -> 31% faster
BUG=N/A
Review URL: https://codereview.chromium.org/374193002
Cr-Commit-Position: refs/heads/master@{#289160}
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@289160 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'win8/test/metro_registration_helper.cc')
0 files changed, 0 insertions, 0 deletions