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

Unified Diff: trunk/Source/core/html/canvas/WebGLVertexArrayObjectOES.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/WebGLTexture.cpp ('k') | trunk/Source/platform/graphics/gpu/DrawingBuffer.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: trunk/Source/core/html/canvas/WebGLVertexArrayObjectOES.cpp
===================================================================
--- trunk/Source/core/html/canvas/WebGLVertexArrayObjectOES.cpp (revision 168480)
+++ trunk/Source/core/html/canvas/WebGLVertexArrayObjectOES.cpp (working copy)
@@ -49,7 +49,7 @@
case VaoTypeDefault:
break;
default:
- setObject(context()->webContext()->createVertexArrayOES());
+ setObject(context()->webGraphicsContext3D()->createVertexArrayOES());
break;
}
}
@@ -65,7 +65,7 @@
case VaoTypeDefault:
break;
default:
- context()->webContext()->deleteVertexArrayOES(object);
+ context()->webGraphicsContext3D()->deleteVertexArrayOES(object);
break;
}
@@ -84,7 +84,7 @@
if (buffer)
buffer->onAttached();
if (m_boundElementArrayBuffer)
- m_boundElementArrayBuffer->onDetached(context()->webContext());
+ m_boundElementArrayBuffer->onDetached(context()->webGraphicsContext3D());
m_boundElementArrayBuffer = buffer;
}
@@ -99,7 +99,7 @@
if (buffer)
buffer->onAttached();
if (state.bufferBinding)
- state.bufferBinding->onDetached(context()->webContext());
+ state.bufferBinding->onDetached(context()->webGraphicsContext3D());
state.bufferBinding = buffer;
state.bytesPerElement = bytesPerElement;
@@ -114,14 +114,14 @@
void WebGLVertexArrayObjectOES::unbindBuffer(PassRefPtr<WebGLBuffer> buffer)
{
if (m_boundElementArrayBuffer == buffer) {
- m_boundElementArrayBuffer->onDetached(context()->webContext());
+ m_boundElementArrayBuffer->onDetached(context()->webGraphicsContext3D());
m_boundElementArrayBuffer = nullptr;
}
for (size_t i = 0; i < m_vertexAttribState.size(); ++i) {
VertexAttribState& state = m_vertexAttribState[i];
if (state.bufferBinding == buffer) {
- buffer->onDetached(context()->webContext());
+ buffer->onDetached(context()->webGraphicsContext3D());
state.bufferBinding = nullptr;
}
}
« no previous file with comments | « trunk/Source/core/html/canvas/WebGLTexture.cpp ('k') | trunk/Source/platform/graphics/gpu/DrawingBuffer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698