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

Side by Side Diff: third_party/WebKit/Source/modules/webgl/CHROMIUMValuebuffer.cpp

Issue 1894313002: Removed implementation of CHROMIUM_subscribe_uniform (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Missed a couple more mus/ references Created 4 years, 8 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 unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright (c) 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "modules/webgl/CHROMIUMValuebuffer.h"
6
7 #include "gpu/command_buffer/client/gles2_interface.h"
8 #include "modules/webgl/WebGLRenderingContextBase.h"
9
10 namespace blink {
11
12 CHROMIUMValuebuffer* CHROMIUMValuebuffer::create(WebGLRenderingContextBase* ctx)
13 {
14 return new CHROMIUMValuebuffer(ctx);
15 }
16
17 CHROMIUMValuebuffer::~CHROMIUMValuebuffer()
18 {
19 // See the comment in WebGLObject::detachAndDeleteObject().
20 detachAndDeleteObject();
21 }
22
23 CHROMIUMValuebuffer::CHROMIUMValuebuffer(WebGLRenderingContextBase* ctx)
24 : WebGLSharedPlatform3DObject(ctx)
25 , m_hasEverBeenBound(false)
26 {
27 GLuint buffer;
28 ctx->contextGL()->GenValuebuffersCHROMIUM(1, &buffer);
29 setObject(buffer);
30 }
31
32 void CHROMIUMValuebuffer::deleteObjectImpl(gpu::gles2::GLES2Interface* gl)
33 {
34 gl->DeleteValuebuffersCHROMIUM(1, &m_object);
35 m_object = 0;
36 }
37
38 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698