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 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
76 #include "modules/webgl/WebGLFramebuffer.h" | 76 #include "modules/webgl/WebGLFramebuffer.h" |
77 #include "modules/webgl/WebGLLoseContext.h" | 77 #include "modules/webgl/WebGLLoseContext.h" |
78 #include "modules/webgl/WebGLProgram.h" | 78 #include "modules/webgl/WebGLProgram.h" |
79 #include "modules/webgl/WebGLRenderbuffer.h" | 79 #include "modules/webgl/WebGLRenderbuffer.h" |
80 #include "modules/webgl/WebGLShader.h" | 80 #include "modules/webgl/WebGLShader.h" |
81 #include "modules/webgl/WebGLShaderPrecisionFormat.h" | 81 #include "modules/webgl/WebGLShaderPrecisionFormat.h" |
82 #include "modules/webgl/WebGLUniformLocation.h" | 82 #include "modules/webgl/WebGLUniformLocation.h" |
83 #include "modules/webgl/WebGLVertexArrayObject.h" | 83 #include "modules/webgl/WebGLVertexArrayObject.h" |
84 #include "modules/webgl/WebGLVertexArrayObjectOES.h" | 84 #include "modules/webgl/WebGLVertexArrayObjectOES.h" |
85 #include "platform/CheckedInt.h" | 85 #include "platform/CheckedInt.h" |
86 #include "platform/CrossThreadFunctional.h" | |
87 #include "platform/RuntimeEnabledFeatures.h" | 86 #include "platform/RuntimeEnabledFeatures.h" |
88 #include "platform/WaitableEvent.h" | 87 #include "platform/WaitableEvent.h" |
89 #include "platform/geometry/IntSize.h" | 88 #include "platform/geometry/IntSize.h" |
90 #include "platform/graphics/GraphicsContext.h" | 89 #include "platform/graphics/GraphicsContext.h" |
91 #include "platform/graphics/UnacceleratedImageBufferSurface.h" | 90 #include "platform/graphics/UnacceleratedImageBufferSurface.h" |
92 #include "platform/graphics/gpu/AcceleratedImageBufferSurface.h" | 91 #include "platform/graphics/gpu/AcceleratedImageBufferSurface.h" |
93 #include "public/platform/Platform.h" | 92 #include "public/platform/Platform.h" |
94 #include "public/platform/functional/WebFunction.h" | 93 #include "public/platform/functional/WebFunction.h" |
95 #include "wtf/Functional.h" | 94 #include "wtf/Functional.h" |
96 #include "wtf/PtrUtil.h" | 95 #include "wtf/PtrUtil.h" |
(...skipping 6374 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6471 contextGL()->PixelStorei(GL_UNPACK_ALIGNMENT, 1); | 6470 contextGL()->PixelStorei(GL_UNPACK_ALIGNMENT, 1); |
6472 } | 6471 } |
6473 | 6472 |
6474 void WebGLRenderingContextBase::restoreUnpackParameters() | 6473 void WebGLRenderingContextBase::restoreUnpackParameters() |
6475 { | 6474 { |
6476 if (m_unpackAlignment != 1) | 6475 if (m_unpackAlignment != 1) |
6477 contextGL()->PixelStorei(GL_UNPACK_ALIGNMENT, m_unpackAlignment); | 6476 contextGL()->PixelStorei(GL_UNPACK_ALIGNMENT, m_unpackAlignment); |
6478 } | 6477 } |
6479 | 6478 |
6480 } // namespace blink | 6479 } // namespace blink |
OLD | NEW |