Micro-optimization in HandleVertexAttribPointer
vertexAttribPointer is a fairly common GL call, so substituting integer division with bitwise and which has far less latency on common CPU architectures is a worthwhile optimization. IsPOT function is added for asserts that make sure this does not break. Redundant comparison against zero is dropped from IsNPOT. In C++, unsigned integers are specified to work with mod 2^n arithmetic. TEST=gpu_unittests BUG=400135 Review URL: https://codereview.chromium.org/439253002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@287512 0039d316-1c4b-4281-b951-d872f2087c98
Showing
Please register or sign in to comment