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

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

Issue 1817323003: Revert of 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
« no previous file with comments | « gpu/blink/webgraphicscontext3d_impl.cc ('k') | third_party/WebKit/Source/modules/webgl/WebGLBuffer.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/modules/webgl/CHROMIUMValuebuffer.cpp
diff --git a/third_party/WebKit/Source/modules/webgl/CHROMIUMValuebuffer.cpp b/third_party/WebKit/Source/modules/webgl/CHROMIUMValuebuffer.cpp
index 9390ee4bcc361abc422e64ae93416226b32035cd..bd139512afb98492a866f0d05827c7a85ef4fe5b 100644
--- a/third_party/WebKit/Source/modules/webgl/CHROMIUMValuebuffer.cpp
+++ b/third_party/WebKit/Source/modules/webgl/CHROMIUMValuebuffer.cpp
@@ -4,7 +4,6 @@
#include "modules/webgl/CHROMIUMValuebuffer.h"
-#include "gpu/command_buffer/client/gles2_interface.h"
#include "modules/webgl/WebGLRenderingContextBase.h"
namespace blink {
@@ -24,14 +23,12 @@
: WebGLSharedPlatform3DObject(ctx)
, m_hasEverBeenBound(false)
{
- GLuint buffer;
- ctx->contextGL()->GenValuebuffersCHROMIUM(1, &buffer);
- setObject(buffer);
+ setObject(ctx->webContext()->createValuebufferCHROMIUM());
}
void CHROMIUMValuebuffer::deleteObjectImpl(WebGraphicsContext3D* context3d, gpu::gles2::GLES2Interface* gl)
{
- gl->DeleteValuebuffersCHROMIUM(1, &m_object);
+ context3d->deleteValuebufferCHROMIUM(m_object);
m_object = 0;
}
« no previous file with comments | « gpu/blink/webgraphicscontext3d_impl.cc ('k') | third_party/WebKit/Source/modules/webgl/WebGLBuffer.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698