Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(103)

Unified Diff: trunk/Source/core/html/canvas/WebGLRenderingContext.cpp

Issue 184343005: Revert 168457 "WebGL: Transfer ownership of WebGraphicsContext3D..." (Closed) Base URL: svn://svn.chromium.org/blink/
Patch Set: Created 6 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: trunk/Source/core/html/canvas/WebGLRenderingContext.cpp
===================================================================
--- trunk/Source/core/html/canvas/WebGLRenderingContext.cpp (revision 168480)
+++ trunk/Source/core/html/canvas/WebGLRenderingContext.cpp (working copy)
@@ -94,7 +94,7 @@
renderingContext->registerContextExtensions();
renderingContext->suspendIfNeeded();
- if (!renderingContext->m_drawingBuffer) {
+ if (renderingContext->m_drawingBuffer->isZeroSized()) {
canvas->dispatchEvent(WebGLContextEvent::create(EventTypeNames::webglcontextcreationerror, false, true, "Could not create a WebGL context."));
return nullptr;
}
« no previous file with comments | « trunk/Source/core/html/canvas/WebGLRenderbuffer.cpp ('k') | trunk/Source/core/html/canvas/WebGLRenderingContextBase.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698