Fix for crashing bots

TBR=bsalomon@google.com
BUG=skia:

Review URL: https://codereview.chromium.org/1159183006
This commit is contained in:
joshualitt 2015-06-01 16:17:03 -07:00 committed by Commit bot
parent e5b74c6856
commit 8b08159aa7

View File

@ -239,6 +239,7 @@ GrContext* GrContext::CreateMockContext() {
void GrContext::initMockContext() {
GrContextOptions options;
options.fGeometryBufferMapThreshold = 0;
SkASSERT(NULL == fGpu);
fGpu = SkNEW_ARGS(MockGpu, (this, options));
SkASSERT(fGpu);