From: sugoi Date: Mon, 19 Jan 2015 18:31:35 +0000 (-0800) Subject: Broken dm fix X-Git-Tag: submit/tizen/20180928.044319~4016 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=4043d17c63888ed7007613c1f2f4f125b051e9c4;p=platform%2Fupstream%2FlibSkiaSharp.git Broken dm fix BUG=skia: Review URL: https://codereview.chromium.org/855953005 --- diff --git a/src/gpu/SkGr.cpp b/src/gpu/SkGr.cpp index 18b27534bc..64142fe07e 100644 --- a/src/gpu/SkGr.cpp +++ b/src/gpu/SkGr.cpp @@ -235,7 +235,7 @@ static GrTexture *load_yuv_texture(GrContext* ctx, bool cache, const GrTexturePa SkYUVPlanesCache::FindAndRef(pixelRef->getGenerationID(), &yuvInfo)); void* planes[3]; - if (cachedData->data()) { + if (cachedData && cachedData->data()) { planes[0] = (void*)cachedData->data(); planes[1] = (uint8_t*)planes[0] + yuvInfo.fSizeInMemory[0]; planes[2] = (uint8_t*)planes[1] + yuvInfo.fSizeInMemory[1];