| 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 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 44 | 44 |
| 45 ANGLEInstancedArrays::~ANGLEInstancedArrays() | 45 ANGLEInstancedArrays::~ANGLEInstancedArrays() |
| 46 { | 46 { |
| 47 } | 47 } |
| 48 | 48 |
| 49 WebGLExtensionName ANGLEInstancedArrays::name() const | 49 WebGLExtensionName ANGLEInstancedArrays::name() const |
| 50 { | 50 { |
| 51 return ANGLEInstancedArraysName; | 51 return ANGLEInstancedArraysName; |
| 52 } | 52 } |
| 53 | 53 |
| 54 ANGLEInstancedArrays* ANGLEInstancedArrays::create(WebGLRenderingContextBase* co
ntext) | 54 PassRefPtrWillBeRawPtr<ANGLEInstancedArrays> ANGLEInstancedArrays::create(WebGLR
enderingContextBase* context) |
| 55 { | 55 { |
| 56 return new ANGLEInstancedArrays(context); | 56 return adoptRefWillBeNoop(new ANGLEInstancedArrays(context)); |
| 57 } | 57 } |
| 58 | 58 |
| 59 bool ANGLEInstancedArrays::supported(WebGLRenderingContextBase* context) | 59 bool ANGLEInstancedArrays::supported(WebGLRenderingContextBase* context) |
| 60 { | 60 { |
| 61 return context->extensionsUtil()->supportsExtension("GL_ANGLE_instanced_arra
ys"); | 61 return context->extensionsUtil()->supportsExtension("GL_ANGLE_instanced_arra
ys"); |
| 62 } | 62 } |
| 63 | 63 |
| 64 const char* ANGLEInstancedArrays::extensionName() | 64 const char* ANGLEInstancedArrays::extensionName() |
| 65 { | 65 { |
| 66 return "ANGLE_instanced_arrays"; | 66 return "ANGLE_instanced_arrays"; |
| (...skipping 20 matching lines...) Expand all Loading... |
| 87 void ANGLEInstancedArrays::vertexAttribDivisorANGLE(GLuint index, GLuint divisor
) | 87 void ANGLEInstancedArrays::vertexAttribDivisorANGLE(GLuint index, GLuint divisor
) |
| 88 { | 88 { |
| 89 WebGLExtensionScopedContext scoped(this); | 89 WebGLExtensionScopedContext scoped(this); |
| 90 if (scoped.isLost()) | 90 if (scoped.isLost()) |
| 91 return; | 91 return; |
| 92 | 92 |
| 93 scoped.context()->vertexAttribDivisorANGLE(index, divisor); | 93 scoped.context()->vertexAttribDivisorANGLE(index, divisor); |
| 94 } | 94 } |
| 95 | 95 |
| 96 } // namespace blink | 96 } // namespace blink |
| OLD | NEW |