Bug 907745 - Prepare for texture locking support. r=mattwodrow