| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2009 Apple Inc. All rights reserved. | 2 * Copyright (C) 2009 Apple Inc. All rights reserved. |
| 3 * Copyright (C) 2009 Google Inc. All rights reserved. | 3 * Copyright (C) 2009 Google Inc. All rights reserved. |
| 4 * | 4 * |
| 5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
| 6 * modification, are permitted provided that the following conditions | 6 * modification, are permitted provided that the following conditions |
| 7 * are met: | 7 * are met: |
| 8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
| (...skipping 25 matching lines...) Expand all Loading... |
| 36 | 36 |
| 37 class WebGLUniformLocation final : public RefCounted<WebGLUniformLocation>, publ
ic ScriptWrappable { | 37 class WebGLUniformLocation final : public RefCounted<WebGLUniformLocation>, publ
ic ScriptWrappable { |
| 38 DEFINE_WRAPPERTYPEINFO(); | 38 DEFINE_WRAPPERTYPEINFO(); |
| 39 public: | 39 public: |
| 40 static PassRefPtr<WebGLUniformLocation> create(WebGLProgram*, GLint location
); | 40 static PassRefPtr<WebGLUniformLocation> create(WebGLProgram*, GLint location
); |
| 41 | 41 |
| 42 WebGLProgram* program() const; | 42 WebGLProgram* program() const; |
| 43 | 43 |
| 44 GLint location() const; | 44 GLint location() const; |
| 45 | 45 |
| 46 void trace(Visitor*); | |
| 47 | |
| 48 protected: | 46 protected: |
| 49 WebGLUniformLocation(WebGLProgram*, GLint location); | 47 WebGLUniformLocation(WebGLProgram*, GLint location); |
| 50 | 48 |
| 51 private: | 49 private: |
| 52 RefPtr<WebGLProgram> m_program; | 50 RefPtr<WebGLProgram> m_program; |
| 53 GLint m_location; | 51 GLint m_location; |
| 54 unsigned m_linkCount; | 52 unsigned m_linkCount; |
| 55 }; | 53 }; |
| 56 | 54 |
| 57 } // namespace blink | 55 } // namespace blink |
| 58 | 56 |
| 59 #endif // WebGLUniformLocation_h | 57 #endif // WebGLUniformLocation_h |
| OLD | NEW |