IIUC what is going on, this won't really do anything bad but will defer allocation of the cpu-side buffer until it is actually needed.
BUG=635015
GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=
2248283007
Review-Url: https://codereview.chromium.org/
2248283007
VALIDATE();
fBytesInUse = 0;
this->deleteBlocks();
-
- // we may have created a large cpu mirror of a large VB. Reset the size to match our minimum.
- this->resetCpuData(fMinBlockSize);
-
+ this->resetCpuData(0); // delete all the cpu-side memory
VALIDATE();
}