| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 #if defined(ENABLE_GPU) | 5 #if defined(ENABLE_GPU) |
| 6 | 6 |
| 7 #include "chrome/renderer/webgraphicscontext3d_command_buffer_impl.h" | 7 #include "chrome/renderer/webgraphicscontext3d_command_buffer_impl.h" |
| 8 | 8 |
| 9 #include <GLES2/gl2.h> | 9 #include <GLES2/gl2.h> |
| 10 | 10 |
| (...skipping 428 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 439 &length, &size, &type, name.get()); | 439 &length, &size, &type, name.get()); |
| 440 if (size < 0) { | 440 if (size < 0) { |
| 441 return false; | 441 return false; |
| 442 } | 442 } |
| 443 info.name = WebKit::WebString::fromUTF8(name.get(), length); | 443 info.name = WebKit::WebString::fromUTF8(name.get(), length); |
| 444 info.type = type; | 444 info.type = type; |
| 445 info.size = size; | 445 info.size = size; |
| 446 return true; | 446 return true; |
| 447 } | 447 } |
| 448 | 448 |
| 449 DELEGATE_TO_GL_4(getAttachedShaders, GetAttachedShaders, |
| 450 WebGLId, int, int*, unsigned int*) |
| 451 |
| 449 DELEGATE_TO_GL_2R(getAttribLocation, GetAttribLocation, | 452 DELEGATE_TO_GL_2R(getAttribLocation, GetAttribLocation, |
| 450 WebGLId, const char*, int) | 453 WebGLId, const char*, int) |
| 451 | 454 |
| 452 DELEGATE_TO_GL_2(getBooleanv, GetBooleanv, unsigned long, unsigned char*) | 455 DELEGATE_TO_GL_2(getBooleanv, GetBooleanv, unsigned long, unsigned char*) |
| 453 | 456 |
| 454 DELEGATE_TO_GL_3(getBufferParameteriv, GetBufferParameteriv, | 457 DELEGATE_TO_GL_3(getBufferParameteriv, GetBufferParameteriv, |
| 455 unsigned long, unsigned long, int*) | 458 unsigned long, unsigned long, int*) |
| 456 | 459 |
| 457 WebKit::WebGraphicsContext3D::Attributes | 460 WebKit::WebGraphicsContext3D::Attributes |
| 458 WebGraphicsContext3DCommandBufferImpl::getContextAttributes() { | 461 WebGraphicsContext3DCommandBufferImpl::getContextAttributes() { |
| (...skipping 337 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 796 glDeleteShader(shader); | 799 glDeleteShader(shader); |
| 797 } | 800 } |
| 798 | 801 |
| 799 void WebGraphicsContext3DCommandBufferImpl::deleteTexture(unsigned texture) { | 802 void WebGraphicsContext3DCommandBufferImpl::deleteTexture(unsigned texture) { |
| 800 makeContextCurrent(); | 803 makeContextCurrent(); |
| 801 glDeleteTextures(1, &texture); | 804 glDeleteTextures(1, &texture); |
| 802 } | 805 } |
| 803 | 806 |
| 804 #endif // defined(ENABLE_GPU) | 807 #endif // defined(ENABLE_GPU) |
| 805 | 808 |
| OLD | NEW |