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 1880 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1891 return 0; | 1891 return 0; |
1892 ActiveInfo info; | 1892 ActiveInfo info; |
1893 if (!m_context->getActiveUniform(objectOrZero(program), index, info)) | 1893 if (!m_context->getActiveUniform(objectOrZero(program), index, info)) |
1894 return 0; | 1894 return 0; |
1895 if (!isGLES2Compliant()) | 1895 if (!isGLES2Compliant()) |
1896 if (info.size > 1 && !info.name.endsWith("[0]")) | 1896 if (info.size > 1 && !info.name.endsWith("[0]")) |
1897 info.name.append("[0]"); | 1897 info.name.append("[0]"); |
1898 return WebGLActiveInfo::create(info.name, info.type, info.size); | 1898 return WebGLActiveInfo::create(info.name, info.type, info.size); |
1899 } | 1899 } |
1900 | 1900 |
1901 bool WebGLRenderingContext::getAttachedShaders(WebGLProgram* program, Vector<Web
GLShader*>& shaderObjects, ExceptionCode& ec) | 1901 bool WebGLRenderingContext::getAttachedShaders(WebGLProgram* program, Vector<Ref
Ptr<WebGLShader> >& shaderObjects, ExceptionCode& ec) |
1902 { | 1902 { |
1903 UNUSED_PARAM(ec); | 1903 UNUSED_PARAM(ec); |
1904 shaderObjects.clear(); | 1904 shaderObjects.clear(); |
1905 if (isContextLost() || !validateWebGLObject(program)) | 1905 if (isContextLost() || !validateWebGLObject(program)) |
1906 return false; | 1906 return false; |
1907 | 1907 |
1908 const GC3Denum shaderType[] = { | 1908 const GC3Denum shaderType[] = { |
1909 GraphicsContext3D::VERTEX_SHADER, | 1909 GraphicsContext3D::VERTEX_SHADER, |
1910 GraphicsContext3D::FRAGMENT_SHADER | 1910 GraphicsContext3D::FRAGMENT_SHADER |
1911 }; | 1911 }; |
(...skipping 2954 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4866 | 4866 |
4867 void WebGLRenderingContext::LRUImageBufferCache::bubbleToFront(int idx) | 4867 void WebGLRenderingContext::LRUImageBufferCache::bubbleToFront(int idx) |
4868 { | 4868 { |
4869 for (int i = idx; i > 0; --i) | 4869 for (int i = idx; i > 0; --i) |
4870 m_buffers[i].swap(m_buffers[i-1]); | 4870 m_buffers[i].swap(m_buffers[i-1]); |
4871 } | 4871 } |
4872 | 4872 |
4873 } // namespace WebCore | 4873 } // namespace WebCore |
4874 | 4874 |
4875 #endif // ENABLE(WEBGL) | 4875 #endif // ENABLE(WEBGL) |
OLD | NEW |