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

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

Issue 1815803003: Move simple methods [T-Z] from WebGraphicsContext3D to GLES2Interface. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@simples-fplus
Patch Set: simples-tplus: fixed 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2014 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "modules/webgl/CHROMIUMValuebuffer.h" 5 #include "modules/webgl/CHROMIUMValuebuffer.h"
6 6
7 #include "modules/webgl/WebGLRenderingContextBase.h" 7 #include "modules/webgl/WebGLRenderingContextBase.h"
8 8
9 namespace blink { 9 namespace blink {
10 10
11 CHROMIUMValuebuffer* CHROMIUMValuebuffer::create(WebGLRenderingContextBase* ctx) 11 CHROMIUMValuebuffer* CHROMIUMValuebuffer::create(WebGLRenderingContextBase* ctx)
12 { 12 {
13 return new CHROMIUMValuebuffer(ctx); 13 return new CHROMIUMValuebuffer(ctx);
14 } 14 }
15 15
16 CHROMIUMValuebuffer::~CHROMIUMValuebuffer() 16 CHROMIUMValuebuffer::~CHROMIUMValuebuffer()
17 { 17 {
18 // See the comment in WebGLObject::detachAndDeleteObject(). 18 // See the comment in WebGLObject::detachAndDeleteObject().
19 detachAndDeleteObject(); 19 detachAndDeleteObject();
20 } 20 }
21 21
22 CHROMIUMValuebuffer::CHROMIUMValuebuffer(WebGLRenderingContextBase* ctx) 22 CHROMIUMValuebuffer::CHROMIUMValuebuffer(WebGLRenderingContextBase* ctx)
23 : WebGLSharedPlatform3DObject(ctx) 23 : WebGLSharedPlatform3DObject(ctx)
24 , m_hasEverBeenBound(false) 24 , m_hasEverBeenBound(false)
25 { 25 {
26 setObject(ctx->webContext()->createValuebufferCHROMIUM()); 26 setObject(ctx->webContext()->createValuebufferCHROMIUM());
27 } 27 }
28 28
29 void CHROMIUMValuebuffer::deleteObjectImpl(WebGraphicsContext3D* context3d) 29 void CHROMIUMValuebuffer::deleteObjectImpl(WebGraphicsContext3D* context3d, gpu: :gles2::GLES2Interface* gl)
30 { 30 {
31 context3d->deleteValuebufferCHROMIUM(m_object); 31 context3d->deleteValuebufferCHROMIUM(m_object);
32 m_object = 0; 32 m_object = 0;
33 } 33 }
34 34
35 } // namespace blink 35 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698