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

Unified Diff: Source/core/html/canvas/WebGLTexture.cpp

Issue 163773007: WebGL: Transfer ownership of WebGraphicsContext3D from WebGLRenderingContext to DrawingBuffer. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@correct_webgl_destroy
Patch Set: Rebase to upstream 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: Source/core/html/canvas/WebGLTexture.cpp
diff --git a/Source/core/html/canvas/WebGLTexture.cpp b/Source/core/html/canvas/WebGLTexture.cpp
index 1cf21aa82a86493a8b894dfeffbb277e46063dc7..292974230ea6f5744821e6c55e2dc18bb7dd5691 100644
--- a/Source/core/html/canvas/WebGLTexture.cpp
+++ b/Source/core/html/canvas/WebGLTexture.cpp
@@ -51,7 +51,7 @@ WebGLTexture::WebGLTexture(WebGLRenderingContextBase* ctx)
, m_isHalfFloatType(false)
{
ScriptWrappable::init(this);
- setObject(ctx->webGraphicsContext3D()->createTexture());
+ setObject(ctx->webContext()->createTexture());
}
WebGLTexture::~WebGLTexture()

Powered by Google App Engine
This is Rietveld 408576698