| 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 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 55 unsigned activeTransformFeedbackCount() const { | 55 unsigned activeTransformFeedbackCount() const { |
| 56 return m_activeTransformFeedbackCount; | 56 return m_activeTransformFeedbackCount; |
| 57 } | 57 } |
| 58 void increaseActiveTransformFeedbackCount(); | 58 void increaseActiveTransformFeedbackCount(); |
| 59 void decreaseActiveTransformFeedbackCount(); | 59 void decreaseActiveTransformFeedbackCount(); |
| 60 | 60 |
| 61 WebGLShader* getAttachedShader(GLenum); | 61 WebGLShader* getAttachedShader(GLenum); |
| 62 bool attachShader(WebGLShader*); | 62 bool attachShader(WebGLShader*); |
| 63 bool detachShader(WebGLShader*); | 63 bool detachShader(WebGLShader*); |
| 64 | 64 |
| 65 virtual void visitChildDOMWrappers(v8::Isolate*, | |
| 66 const v8::Persistent<v8::Object>&); | |
| 67 | |
| 68 DECLARE_VIRTUAL_TRACE(); | 65 DECLARE_VIRTUAL_TRACE(); |
| 69 DECLARE_VIRTUAL_TRACE_WRAPPERS(); | 66 DECLARE_VIRTUAL_TRACE_WRAPPERS(); |
| 70 | 67 |
| 71 protected: | 68 protected: |
| 72 explicit WebGLProgram(WebGLRenderingContextBase*); | 69 explicit WebGLProgram(WebGLRenderingContextBase*); |
| 73 | 70 |
| 74 void deleteObjectImpl(gpu::gles2::GLES2Interface*) override; | 71 void deleteObjectImpl(gpu::gles2::GLES2Interface*) override; |
| 75 | 72 |
| 76 private: | 73 private: |
| 77 bool isProgram() const override { return true; } | 74 bool isProgram() const override { return true; } |
| (...skipping 12 matching lines...) Expand all Loading... |
| 90 | 87 |
| 91 TraceWrapperMember<WebGLShader> m_vertexShader; | 88 TraceWrapperMember<WebGLShader> m_vertexShader; |
| 92 TraceWrapperMember<WebGLShader> m_fragmentShader; | 89 TraceWrapperMember<WebGLShader> m_fragmentShader; |
| 93 | 90 |
| 94 bool m_infoValid; | 91 bool m_infoValid; |
| 95 }; | 92 }; |
| 96 | 93 |
| 97 } // namespace blink | 94 } // namespace blink |
| 98 | 95 |
| 99 #endif // WebGLProgram_h | 96 #endif // WebGLProgram_h |
| OLD | NEW |