r?jrmuizel - Warn when we fail to hit the GPU-copy fast-path.
draft
r?jrmuizel - Warn when we fail to hit the GPU-copy fast-path.
From cbd47e62b513fe53a4e4b82c46c253578c1e9808 Mon Sep 17 00:00:00 2001
---
dom/canvas/TexUnpackBlob.cpp | 4 ++++
1 file changed, 4 insertions(+)
MozReview-Commit-ID: 1PXJPyUseaL
--- a/dom/canvas/TexUnpackBlob.cpp
+++ b/dom/canvas/TexUnpackBlob.cpp
@@ -307,16 +307,20 @@ TexUnpackImage::TexOrSubImage(bool isSub
dstOrigin))
{
break;
}
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;
return;
}
TexUnpackSurface surfBlob(surface, mIsAlphaPremult);