| 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 2801 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2812 m_extensionEnabled[extension->name()] = true; | 2812 m_extensionEnabled[extension->name()] = true; |
| 2813 } | 2813 } |
| 2814 } | 2814 } |
| 2815 } | 2815 } |
| 2816 break; | 2816 break; |
| 2817 } | 2817 } |
| 2818 } | 2818 } |
| 2819 } | 2819 } |
| 2820 | 2820 |
| 2821 v8::Local<v8::Value> wrappedExtension = | 2821 v8::Local<v8::Value> wrappedExtension = |
| 2822 toV8(extension, scriptState->context()->Global(), scriptState->isolate()); | 2822 ToV8(extension, scriptState->context()->Global(), scriptState->isolate()); |
| 2823 | 2823 |
| 2824 return ScriptValue(scriptState, wrappedExtension); | 2824 return ScriptValue(scriptState, wrappedExtension); |
| 2825 } | 2825 } |
| 2826 | 2826 |
| 2827 ScriptValue WebGLRenderingContextBase::getFramebufferAttachmentParameter( | 2827 ScriptValue WebGLRenderingContextBase::getFramebufferAttachmentParameter( |
| 2828 ScriptState* scriptState, | 2828 ScriptState* scriptState, |
| 2829 GLenum target, | 2829 GLenum target, |
| 2830 GLenum attachment, | 2830 GLenum attachment, |
| 2831 GLenum pname) { | 2831 GLenum pname) { |
| 2832 if (isContextLost() || | 2832 if (isContextLost() || |
| (...skipping 4941 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 7774 | 7774 |
| 7775 void WebGLRenderingContextBase::getHTMLOrOffscreenCanvas( | 7775 void WebGLRenderingContextBase::getHTMLOrOffscreenCanvas( |
| 7776 HTMLCanvasElementOrOffscreenCanvas& result) const { | 7776 HTMLCanvasElementOrOffscreenCanvas& result) const { |
| 7777 if (canvas()) | 7777 if (canvas()) |
| 7778 result.setHTMLCanvasElement(canvas()); | 7778 result.setHTMLCanvasElement(canvas()); |
| 7779 else | 7779 else |
| 7780 result.setOffscreenCanvas(getOffscreenCanvas()); | 7780 result.setOffscreenCanvas(getOffscreenCanvas()); |
| 7781 } | 7781 } |
| 7782 | 7782 |
| 7783 } // namespace blink | 7783 } // namespace blink |
| OLD | NEW |