| 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 12 matching lines...) Expand all Loading... |
| 23 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 23 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 24 */ | 24 */ |
| 25 | 25 |
| 26 #include "modules/webgl/WebGLRenderingContextBase.h" | 26 #include "modules/webgl/WebGLRenderingContextBase.h" |
| 27 | 27 |
| 28 #include "bindings/core/v8/ExceptionMessages.h" | 28 #include "bindings/core/v8/ExceptionMessages.h" |
| 29 #include "bindings/core/v8/ExceptionState.h" | 29 #include "bindings/core/v8/ExceptionState.h" |
| 30 #include "bindings/modules/v8/WebGLAny.h" | 30 #include "bindings/modules/v8/WebGLAny.h" |
| 31 #include "core/dom/DOMArrayBuffer.h" | 31 #include "core/dom/DOMArrayBuffer.h" |
| 32 #include "core/dom/DOMTypedArray.h" | 32 #include "core/dom/DOMTypedArray.h" |
| 33 #include "core/dom/ExceptionCode.h" | |
| 34 #include "core/dom/FlexibleArrayBufferView.h" | 33 #include "core/dom/FlexibleArrayBufferView.h" |
| 35 #include "core/fetch/ImageResource.h" | 34 #include "core/fetch/ImageResource.h" |
| 36 #include "core/frame/ImageBitmap.h" | 35 #include "core/frame/ImageBitmap.h" |
| 37 #include "core/frame/LocalFrame.h" | 36 #include "core/frame/LocalFrame.h" |
| 38 #include "core/frame/Settings.h" | 37 #include "core/frame/Settings.h" |
| 39 #include "core/html/HTMLCanvasElement.h" | 38 #include "core/html/HTMLCanvasElement.h" |
| 40 #include "core/html/HTMLImageElement.h" | 39 #include "core/html/HTMLImageElement.h" |
| 41 #include "core/html/HTMLVideoElement.h" | 40 #include "core/html/HTMLVideoElement.h" |
| 42 #include "core/html/ImageData.h" | 41 #include "core/html/ImageData.h" |
| 43 #include "core/inspector/ConsoleMessage.h" | 42 #include "core/inspector/ConsoleMessage.h" |
| (...skipping 6179 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6223 contextGL()->PixelStorei(GL_UNPACK_ALIGNMENT, 1); | 6222 contextGL()->PixelStorei(GL_UNPACK_ALIGNMENT, 1); |
| 6224 } | 6223 } |
| 6225 | 6224 |
| 6226 void WebGLRenderingContextBase::restoreUnpackParameters() | 6225 void WebGLRenderingContextBase::restoreUnpackParameters() |
| 6227 { | 6226 { |
| 6228 if (m_unpackAlignment != 1) | 6227 if (m_unpackAlignment != 1) |
| 6229 contextGL()->PixelStorei(GL_UNPACK_ALIGNMENT, m_unpackAlignment); | 6228 contextGL()->PixelStorei(GL_UNPACK_ALIGNMENT, m_unpackAlignment); |
| 6230 } | 6229 } |
| 6231 | 6230 |
| 6232 } // namespace blink | 6231 } // namespace blink |
| OLD | NEW |