| OLD | NEW | 
|   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  Loading... | 
|  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 | 
| OLD | NEW |