| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2013 Google Inc. All rights reserved. | 2 * Copyright (C) 2013 Google 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 are | 5 * modification, are permitted provided that the following conditions are |
| 6 * met: | 6 * met: |
| 7 * | 7 * |
| 8 * * Redistributions of source code must retain the above copyright | 8 * * 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 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
| (...skipping 26 matching lines...) Expand all Loading... |
| 37 class WebGLRenderingContextBase; | 37 class WebGLRenderingContextBase; |
| 38 | 38 |
| 39 class ANGLEInstancedArrays final : public WebGLExtension { | 39 class ANGLEInstancedArrays final : public WebGLExtension { |
| 40 DEFINE_WRAPPERTYPEINFO(); | 40 DEFINE_WRAPPERTYPEINFO(); |
| 41 | 41 |
| 42 public: | 42 public: |
| 43 static ANGLEInstancedArrays* create(WebGLRenderingContextBase*); | 43 static ANGLEInstancedArrays* create(WebGLRenderingContextBase*); |
| 44 static bool supported(WebGLRenderingContextBase*); | 44 static bool supported(WebGLRenderingContextBase*); |
| 45 static const char* extensionName(); | 45 static const char* extensionName(); |
| 46 | 46 |
| 47 ~ANGLEInstancedArrays() override; | |
| 48 WebGLExtensionName name() const override; | 47 WebGLExtensionName name() const override; |
| 49 | 48 |
| 50 void drawArraysInstancedANGLE(GLenum mode, | 49 void drawArraysInstancedANGLE(GLenum mode, |
| 51 GLint first, | 50 GLint first, |
| 52 GLsizei count, | 51 GLsizei count, |
| 53 GLsizei primcount); | 52 GLsizei primcount); |
| 54 void drawElementsInstancedANGLE(GLenum mode, | 53 void drawElementsInstancedANGLE(GLenum mode, |
| 55 GLsizei count, | 54 GLsizei count, |
| 56 GLenum type, | 55 GLenum type, |
| 57 long long offset, | 56 long long offset, |
| 58 GLsizei primcount); | 57 GLsizei primcount); |
| 59 void vertexAttribDivisorANGLE(GLuint index, GLuint divisor); | 58 void vertexAttribDivisorANGLE(GLuint index, GLuint divisor); |
| 60 | 59 |
| 61 private: | 60 private: |
| 62 explicit ANGLEInstancedArrays(WebGLRenderingContextBase*); | 61 explicit ANGLEInstancedArrays(WebGLRenderingContextBase*); |
| 63 }; | 62 }; |
| 64 | 63 |
| 65 } // namespace blink | 64 } // namespace blink |
| 66 | 65 |
| 67 #endif // ANGLEInstancedArrays_h | 66 #endif // ANGLEInstancedArrays_h |
| OLD | NEW |