Index: third_party/WebKit/Source/modules/webgl/WebGLRenderingContextBase.cpp |
diff --git a/third_party/WebKit/Source/modules/webgl/WebGLRenderingContextBase.cpp b/third_party/WebKit/Source/modules/webgl/WebGLRenderingContextBase.cpp |
index bd0e6118d7a75771929261732a313375941ff9eb..04a9eecec34188a5d07a5b0806378d7682cd9354 100644 |
--- a/third_party/WebKit/Source/modules/webgl/WebGLRenderingContextBase.cpp |
+++ b/third_party/WebKit/Source/modules/webgl/WebGLRenderingContextBase.cpp |
@@ -1328,9 +1328,11 @@ bool WebGLRenderingContextBase::paintRenderingResultsToCanvas(SourceDrawingBuffe |
drawingBuffer()->commit(); |
if (!canvas()->buffer()->copyRenderingResultsFromDrawingBuffer(drawingBuffer(), sourceBuffer)) { |
- canvas()->ensureUnacceleratedImageBuffer(); |
- if (canvas()->hasImageBuffer()) |
- drawingBuffer()->paintRenderingResultsToCanvas(canvas()->buffer()); |
+ // Currently, copyRenderingResultsFromDrawingBuffer is expected to always succeed because cases |
+ // where canvas()-buffer() is not accelerated are handle before reaching this point. |
+ // If that assumption ever stops holding true, we may need to implement a fallback right here. |
+ ASSERT_NOT_REACHED(); |
+ return false; |
} |
return true; |