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

Unified Diff: third_party/WebKit/Source/modules/webgl/WebGLFramebuffer.cpp

Issue 1814263004: Remove create/delete methods from WebGraphicsContext3D. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@complex-casts
Patch Set: Created 4 years, 9 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: third_party/WebKit/Source/modules/webgl/WebGLFramebuffer.cpp
diff --git a/third_party/WebKit/Source/modules/webgl/WebGLFramebuffer.cpp b/third_party/WebKit/Source/modules/webgl/WebGLFramebuffer.cpp
index 86ebce7910d25b1b4632e6fa32192ef3a61012f8..43d538be9efd10d05234f0b1b1bf684409ec5d37 100644
--- a/third_party/WebKit/Source/modules/webgl/WebGLFramebuffer.cpp
+++ b/third_party/WebKit/Source/modules/webgl/WebGLFramebuffer.cpp
@@ -201,11 +201,12 @@ WebGLFramebuffer* WebGLFramebuffer::create(WebGLRenderingContextBase* ctx)
WebGLFramebuffer::WebGLFramebuffer(WebGLRenderingContextBase* ctx)
: WebGLContextObject(ctx)
- , m_object(ctx->webContext()->createFramebuffer())
+ , m_object(0)
, m_destructionInProgress(false)
, m_hasEverBeenBound(false)
, m_readBuffer(GL_COLOR_ATTACHMENT0)
{
+ ctx->contextGL()->GenFramebuffers(1, &m_object);
}
WebGLFramebuffer::~WebGLFramebuffer()
@@ -367,7 +368,7 @@ void WebGLFramebuffer::deleteObjectImpl(WebGraphicsContext3D* context3d, gpu::gl
attachment.value->onDetached(context3d, gl);
}
- context3d->deleteFramebuffer(m_object);
+ gl->DeleteFramebuffers(1, &m_object);
m_object = 0;
}

Powered by Google App Engine
This is Rietveld 408576698