OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2009 Google Inc. All rights reserved. | 2 * Copyright (C) 2009 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 325 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
336 void V8WebGLRenderingContext::getExtensionMethodCustom(const v8::FunctionCallbac
kInfo<v8::Value>& info) | 336 void V8WebGLRenderingContext::getExtensionMethodCustom(const v8::FunctionCallbac
kInfo<v8::Value>& info) |
337 { | 337 { |
338 ExceptionState exceptionState(ExceptionState::ExecutionContext, "getExtensio
n", "WebGLRenderingContext", info.Holder(), info.GetIsolate()); | 338 ExceptionState exceptionState(ExceptionState::ExecutionContext, "getExtensio
n", "WebGLRenderingContext", info.Holder(), info.GetIsolate()); |
339 WebGLRenderingContext* impl = V8WebGLRenderingContext::toNative(info.Holder(
)); | 339 WebGLRenderingContext* impl = V8WebGLRenderingContext::toNative(info.Holder(
)); |
340 if (info.Length() < 1) { | 340 if (info.Length() < 1) { |
341 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i
nfo.Length())); | 341 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i
nfo.Length())); |
342 exceptionState.throwIfNeeded(); | 342 exceptionState.throwIfNeeded(); |
343 return; | 343 return; |
344 } | 344 } |
345 TOSTRING_VOID(V8StringResource<>, name, info[0]); | 345 TOSTRING_VOID(V8StringResource<>, name, info[0]); |
346 RefPtr<WebGLExtension> extension(impl->getExtension(name)); | 346 RefPtrWillBeRawPtr<WebGLExtension> extension(impl->getExtension(name)); |
347 v8SetReturnValue(info, toV8Object(extension.get(), info.Holder(), info.GetIs
olate())); | 347 v8SetReturnValue(info, toV8Object(extension.get(), info.Holder(), info.GetIs
olate())); |
348 } | 348 } |
349 | 349 |
350 void V8WebGLRenderingContext::getFramebufferAttachmentParameterMethodCustom(cons
t v8::FunctionCallbackInfo<v8::Value>& info) | 350 void V8WebGLRenderingContext::getFramebufferAttachmentParameterMethodCustom(cons
t v8::FunctionCallbackInfo<v8::Value>& info) |
351 { | 351 { |
352 ExceptionState exceptionState(ExceptionState::ExecutionContext, "getFramebuf
ferAttachmentParameter", "WebGLRenderingContext", info.Holder(), info.GetIsolate
()); | 352 ExceptionState exceptionState(ExceptionState::ExecutionContext, "getFramebuf
ferAttachmentParameter", "WebGLRenderingContext", info.Holder(), info.GetIsolate
()); |
353 if (info.Length() != 3) { | 353 if (info.Length() != 3) { |
354 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(3, i
nfo.Length())); | 354 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(3, i
nfo.Length())); |
355 exceptionState.throwIfNeeded(); | 355 exceptionState.throwIfNeeded(); |
356 return; | 356 return; |
(...skipping 465 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
822 vertexAttribAndUniformHelperf(info, kVertexAttrib3v, exceptionState); | 822 vertexAttribAndUniformHelperf(info, kVertexAttrib3v, exceptionState); |
823 } | 823 } |
824 | 824 |
825 void V8WebGLRenderingContext::vertexAttrib4fvMethodCustom(const v8::FunctionCall
backInfo<v8::Value>& info) | 825 void V8WebGLRenderingContext::vertexAttrib4fvMethodCustom(const v8::FunctionCall
backInfo<v8::Value>& info) |
826 { | 826 { |
827 ExceptionState exceptionState(ExceptionState::ExecutionContext, "vertexAttri
b4fv", "WebGLRenderingContext", info.Holder(), info.GetIsolate()); | 827 ExceptionState exceptionState(ExceptionState::ExecutionContext, "vertexAttri
b4fv", "WebGLRenderingContext", info.Holder(), info.GetIsolate()); |
828 vertexAttribAndUniformHelperf(info, kVertexAttrib4v, exceptionState); | 828 vertexAttribAndUniformHelperf(info, kVertexAttrib4v, exceptionState); |
829 } | 829 } |
830 | 830 |
831 } // namespace blink | 831 } // namespace blink |
OLD | NEW |