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 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
56 | 56 |
57 WebGLShader* getAttachedShader(GLenum); | 57 WebGLShader* getAttachedShader(GLenum); |
58 bool attachShader(WebGLShader*); | 58 bool attachShader(WebGLShader*); |
59 bool detachShader(WebGLShader*); | 59 bool detachShader(WebGLShader*); |
60 | 60 |
61 DECLARE_VIRTUAL_TRACE(); | 61 DECLARE_VIRTUAL_TRACE(); |
62 | 62 |
63 protected: | 63 protected: |
64 explicit WebGLProgram(WebGLRenderingContextBase*); | 64 explicit WebGLProgram(WebGLRenderingContextBase*); |
65 | 65 |
66 void deleteObjectImpl(WebGraphicsContext3D*, gpu::gles2::GLES2Interface*) ov
erride; | 66 void deleteObjectImpl(gpu::gles2::GLES2Interface*) override; |
67 | 67 |
68 private: | 68 private: |
69 bool isProgram() const override { return true; } | 69 bool isProgram() const override { return true; } |
70 | 70 |
71 void cacheInfoIfNeeded(WebGLRenderingContextBase*); | 71 void cacheInfoIfNeeded(WebGLRenderingContextBase*); |
72 | 72 |
73 GLint m_linkStatus; | 73 GLint m_linkStatus; |
74 | 74 |
75 // This is used to track whether a WebGLUniformLocation belongs to this | 75 // This is used to track whether a WebGLUniformLocation belongs to this |
76 // program or not. | 76 // program or not. |
77 unsigned m_linkCount; | 77 unsigned m_linkCount; |
78 | 78 |
79 // This is used to track the program being used by active transform | 79 // This is used to track the program being used by active transform |
80 // feedback objects. | 80 // feedback objects. |
81 unsigned m_activeTransformFeedbackCount; | 81 unsigned m_activeTransformFeedbackCount; |
82 | 82 |
83 Member<WebGLShader> m_vertexShader; | 83 Member<WebGLShader> m_vertexShader; |
84 Member<WebGLShader> m_fragmentShader; | 84 Member<WebGLShader> m_fragmentShader; |
85 | 85 |
86 bool m_infoValid; | 86 bool m_infoValid; |
87 }; | 87 }; |
88 | 88 |
89 } // namespace blink | 89 } // namespace blink |
90 | 90 |
91 #endif // WebGLProgram_h | 91 #endif // WebGLProgram_h |
OLD | NEW |