| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2010 Apple Inc. All rights reserved. | 2 * Copyright (C) 2010 Apple Inc. All rights reserved. |
| 3 * Copyright (C) 2010 Google Inc. All rights reserved. | 3 * Copyright (C) 2010 Google Inc. All rights reserved. |
| 4 * Copyright (C) 2010 Mozilla Corporation. All rights reserved. | 4 * Copyright (C) 2010 Mozilla Corporation. All rights reserved. |
| 5 * | 5 * |
| 6 * Redistribution and use in source and binary forms, with or without | 6 * Redistribution and use in source and binary forms, with or without |
| 7 * modification, are permitted provided that the following conditions | 7 * modification, are permitted provided that the following conditions |
| 8 * are met: | 8 * are met: |
| 9 * 1. Redistributions of source code must retain the above copyright | 9 * 1. Redistributions of source code must retain the above copyright |
| 10 * notice, this list of conditions and the following disclaimer. | 10 * notice, this list of conditions and the following disclaimer. |
| (...skipping 13 matching lines...) Expand all Loading... |
| 24 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | 24 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
| 25 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 25 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 26 */ | 26 */ |
| 27 | 27 |
| 28 #include "config.h" | 28 #include "config.h" |
| 29 | 29 |
| 30 #include "core/platform/graphics/GraphicsContext3D.h" | 30 #include "core/platform/graphics/GraphicsContext3D.h" |
| 31 | 31 |
| 32 #include "GrContext.h" | 32 #include "GrContext.h" |
| 33 #include "GrGLInterface.h" | 33 #include "GrGLInterface.h" |
| 34 #include "SkTypes.h" | |
| 35 #include "core/html/ImageData.h" | 34 #include "core/html/ImageData.h" |
| 36 #include "core/html/canvas/CheckedInt.h" | 35 #include "core/html/canvas/CheckedInt.h" |
| 37 #include "core/platform/graphics/Extensions3D.h" | 36 #include "core/platform/graphics/Extensions3D.h" |
| 38 #include "core/platform/graphics/GraphicsContext.h" | 37 #include "core/platform/graphics/GraphicsContext.h" |
| 39 #include "core/platform/graphics/Image.h" | 38 #include "core/platform/graphics/Image.h" |
| 40 #include "core/platform/graphics/ImageBuffer.h" | 39 #include "core/platform/graphics/ImageBuffer.h" |
| 41 #include "core/platform/graphics/ImageObserver.h" | 40 #include "core/platform/graphics/ImageObserver.h" |
| 42 #include "core/platform/graphics/gpu/DrawingBuffer.h" | 41 #include "core/platform/graphics/gpu/DrawingBuffer.h" |
| 43 #include "core/platform/image-decoders/ImageDecoder.h" | 42 #include "core/platform/image-decoders/ImageDecoder.h" |
| 44 #include "wtf/ArrayBufferView.h" | |
| 45 #include "wtf/CPU.h" | 43 #include "wtf/CPU.h" |
| 46 #include "wtf/OwnArrayPtr.h" | 44 #include "wtf/OwnArrayPtr.h" |
| 47 #include "wtf/PassOwnArrayPtr.h" | 45 #include "wtf/PassOwnArrayPtr.h" |
| 48 #include "wtf/text/CString.h" | 46 #include "wtf/text/CString.h" |
| 49 #include "wtf/text/StringHash.h" | 47 #include "wtf/text/StringHash.h" |
| 50 #include "wtf/text/WTFString.h" | 48 #include "wtf/text/WTFString.h" |
| 51 | 49 |
| 52 #include <public/Platform.h> | 50 #include <public/Platform.h> |
| 53 #include <public/WebGraphicsContext3D.h> | 51 #include <public/WebGraphicsContext3D.h> |
| 54 #include <public/WebGraphicsContext3DProvider.h> | 52 #include <public/WebGraphicsContext3DProvider.h> |
| (...skipping 971 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1026 } | 1024 } |
| 1027 | 1025 |
| 1028 bool GraphicsContext3D::isExtensionEnabled(const String& name) | 1026 bool GraphicsContext3D::isExtensionEnabled(const String& name) |
| 1029 { | 1027 { |
| 1030 initializeExtensions(); | 1028 initializeExtensions(); |
| 1031 String mappedName = mapExtensionName(name); | 1029 String mappedName = mapExtensionName(name); |
| 1032 return m_enabledExtensions.contains(mappedName); | 1030 return m_enabledExtensions.contains(mappedName); |
| 1033 } | 1031 } |
| 1034 | 1032 |
| 1035 } // namespace WebCore | 1033 } // namespace WebCore |
| OLD | NEW |