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

Side by Side Diff: third_party/WebKit/Source/modules/webgl/WebGLBuffer.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 /* 1 /*
2 * Copyright (C) 2009 Apple Inc. All rights reserved. 2 * Copyright (C) 2009 Apple Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 30 matching lines...) Expand all
41 { 41 {
42 setObject(ctx->webContext()->createBuffer()); 42 setObject(ctx->webContext()->createBuffer());
43 } 43 }
44 44
45 WebGLBuffer::~WebGLBuffer() 45 WebGLBuffer::~WebGLBuffer()
46 { 46 {
47 // See the comment in WebGLObject::detachAndDeleteObject(). 47 // See the comment in WebGLObject::detachAndDeleteObject().
48 detachAndDeleteObject(); 48 detachAndDeleteObject();
49 } 49 }
50 50
51 void WebGLBuffer::deleteObjectImpl(WebGraphicsContext3D* context3d) 51 void WebGLBuffer::deleteObjectImpl(WebGraphicsContext3D* context3d, gpu::gles2:: GLES2Interface* gl)
52 { 52 {
53 context3d->deleteBuffer(m_object); 53 context3d->deleteBuffer(m_object);
54 m_object = 0; 54 m_object = 0;
55 } 55 }
56 56
57 void WebGLBuffer::setInitialTarget(GLenum target) 57 void WebGLBuffer::setInitialTarget(GLenum target)
58 { 58 {
59 // WebGL restricts the ability to bind buffers to multiple targets based on 59 // WebGL restricts the ability to bind buffers to multiple targets based on
60 // it's initial bind point. 60 // it's initial bind point.
61 ASSERT(!m_initialTarget); 61 ASSERT(!m_initialTarget);
62 m_initialTarget = target; 62 m_initialTarget = target;
63 } 63 }
64 64
65 } // namespace blink 65 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/modules/webgl/WebGLBuffer.h ('k') | third_party/WebKit/Source/modules/webgl/WebGLContextObject.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698