Bug 1276093 - Warn when we fail to hit the GPU-copy fast-path. - r=jrmuizel

This commit is contained in:
Jeff Gilbert 2016-05-31 19:18:31 -07:00
parent 20401f453e
commit cb9b33550e

View File

@ -312,6 +312,10 @@ TexUnpackImage::TexOrSubImage(bool isSubImage, bool needsRespec, const char* fun
return; // Blitting was successful, so we're done!
} while (false);
webgl->GenerateWarning("%s: Failed to hit GPU-copy fast-path. Falling back to CPU"
" upload.",
funcName);
RefPtr<SourceSurface> surface = mImage->GetAsSourceSurface();
if (!surface) {
*out_glError = LOCAL_GL_OUT_OF_MEMORY;