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

Unified Diff: trunk/Source/core/html/canvas/WebGLFramebuffer.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
« no previous file with comments | « trunk/Source/core/html/canvas/WebGLDrawBuffers.cpp ('k') | trunk/Source/core/html/canvas/WebGLProgram.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: trunk/Source/core/html/canvas/WebGLFramebuffer.cpp
===================================================================
--- trunk/Source/core/html/canvas/WebGLFramebuffer.cpp (revision 168480)
+++ trunk/Source/core/html/canvas/WebGLFramebuffer.cpp (working copy)
@@ -263,7 +263,7 @@
, m_hasEverBeenBound(false)
{
ScriptWrappable::init(this);
- setObject(ctx->webContext()->createFramebuffer());
+ setObject(ctx->webGraphicsContext3D()->createFramebuffer());
}
WebGLFramebuffer::~WebGLFramebuffer()
@@ -302,7 +302,7 @@
ASSERT(isBound());
WebGLAttachment* attachmentObject = getAttachment(attachment);
if (attachmentObject)
- attachmentObject->attach(context()->webContext(), attachmentPoint);
+ attachmentObject->attach(context()->webGraphicsContext3D(), attachmentPoint);
}
WebGLSharedObject* WebGLFramebuffer::getAttachmentObject(GLenum attachment) const
@@ -413,7 +413,7 @@
WebGLAttachment* attachmentObject = getAttachment(attachment);
if (attachmentObject) {
- attachmentObject->onDetached(context()->webContext());
+ attachmentObject->onDetached(context()->webGraphicsContext3D());
m_attachments.remove(attachment);
drawBuffersIfNecessary(false);
switch (attachment) {
@@ -446,7 +446,7 @@
WebGLAttachment* attachmentObject = it->value.get();
if (attachmentObject->isSharedObject(attachment)) {
GLenum attachmentType = it->key;
- attachmentObject->unattach(context()->webContext(), attachmentType);
+ attachmentObject->unattach(context()->webGraphicsContext3D(), attachmentType);
removeAttachmentFromBoundFramebuffer(attachmentType);
checkMore = true;
break;
@@ -601,7 +601,7 @@
}
}
if (reset) {
- context()->webContext()->drawBuffersEXT(
+ context()->webGraphicsContext3D()->drawBuffersEXT(
m_filteredDrawBuffers.size(), m_filteredDrawBuffers.data());
}
}
« no previous file with comments | « trunk/Source/core/html/canvas/WebGLDrawBuffers.cpp ('k') | trunk/Source/core/html/canvas/WebGLProgram.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698