DescriptionMicro-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
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=287512
Patch Set 1 #
Messages
Total messages: 6 (0 generated)
|