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 2797 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2808 "", 0, | 2808 "", 0, |
2809 }; | 2809 }; |
2810 return prefixes_ ? prefixes_ : kUnprefixed; | 2810 return prefixes_ ? prefixes_ : kUnprefixed; |
2811 } | 2811 } |
2812 | 2812 |
2813 bool WebGLRenderingContextBase::ExtensionTracker::MatchesNameWithPrefixes( | 2813 bool WebGLRenderingContextBase::ExtensionTracker::MatchesNameWithPrefixes( |
2814 const String& name) const { | 2814 const String& name) const { |
2815 const char* const* prefix_set = Prefixes(); | 2815 const char* const* prefix_set = Prefixes(); |
2816 for (; *prefix_set; ++prefix_set) { | 2816 for (; *prefix_set; ++prefix_set) { |
2817 String prefixed_name = String(*prefix_set) + ExtensionName(); | 2817 String prefixed_name = String(*prefix_set) + ExtensionName(); |
2818 if (EqualIgnoringCase(prefixed_name, name)) { | 2818 if (DeprecatedEqualIgnoringCase(prefixed_name, name)) { |
2819 return true; | 2819 return true; |
2820 } | 2820 } |
2821 } | 2821 } |
2822 return false; | 2822 return false; |
2823 } | 2823 } |
2824 | 2824 |
2825 bool WebGLRenderingContextBase::ExtensionSupportedAndAllowed( | 2825 bool WebGLRenderingContextBase::ExtensionSupportedAndAllowed( |
2826 const ExtensionTracker* tracker) { | 2826 const ExtensionTracker* tracker) { |
2827 if (tracker->Draft() && | 2827 if (tracker->Draft() && |
2828 !RuntimeEnabledFeatures::webGLDraftExtensionsEnabled()) | 2828 !RuntimeEnabledFeatures::webGLDraftExtensionsEnabled()) |
(...skipping 4978 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7807 | 7807 |
7808 void WebGLRenderingContextBase::getHTMLOrOffscreenCanvas( | 7808 void WebGLRenderingContextBase::getHTMLOrOffscreenCanvas( |
7809 HTMLCanvasElementOrOffscreenCanvas& result) const { | 7809 HTMLCanvasElementOrOffscreenCanvas& result) const { |
7810 if (canvas()) | 7810 if (canvas()) |
7811 result.setHTMLCanvasElement(canvas()); | 7811 result.setHTMLCanvasElement(canvas()); |
7812 else | 7812 else |
7813 result.setOffscreenCanvas(offscreenCanvas()); | 7813 result.setOffscreenCanvas(offscreenCanvas()); |
7814 } | 7814 } |
7815 | 7815 |
7816 } // namespace blink | 7816 } // namespace blink |
OLD | NEW |