| 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 895 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 906 | 906 |
| 907 WebGLRenderingContextBase::WebGLRenderingContextBase(HTMLCanvasElement* passedCa
nvas, | 907 WebGLRenderingContextBase::WebGLRenderingContextBase(HTMLCanvasElement* passedCa
nvas, |
| 908 std::unique_ptr<WebGraphicsContext3DProvider> contextProvider, | 908 std::unique_ptr<WebGraphicsContext3DProvider> contextProvider, |
| 909 const WebGLContextAttributes& requestedAttributes, unsigned version) | 909 const WebGLContextAttributes& requestedAttributes, unsigned version) |
| 910 : WebGLRenderingContextBase(passedCanvas, nullptr, std::move(contextProvider
), requestedAttributes, version) | 910 : WebGLRenderingContextBase(passedCanvas, nullptr, std::move(contextProvider
), requestedAttributes, version) |
| 911 { } | 911 { } |
| 912 | 912 |
| 913 WebGLRenderingContextBase::WebGLRenderingContextBase(HTMLCanvasElement* passedCa
nvas, | 913 WebGLRenderingContextBase::WebGLRenderingContextBase(HTMLCanvasElement* passedCa
nvas, |
| 914 OffscreenCanvas* passedOffscreenCanvas, std::unique_ptr<WebGraphicsContext3D
Provider> contextProvider, | 914 OffscreenCanvas* passedOffscreenCanvas, std::unique_ptr<WebGraphicsContext3D
Provider> contextProvider, |
| 915 const WebGLContextAttributes& requestedAttributes, unsigned version) | 915 const WebGLContextAttributes& requestedAttributes, unsigned version) |
| 916 : CanvasRenderingContext(passedCanvas, passedOffscreenCanvas) | 916 : CanvasRenderingContext(passedCanvas, passedOffscreenCanvas, "") |
| 917 , m_isHidden(false) | 917 , m_isHidden(false) |
| 918 , m_contextLostMode(NotLostContext) | 918 , m_contextLostMode(NotLostContext) |
| 919 , m_autoRecoveryMethod(Manual) | 919 , m_autoRecoveryMethod(Manual) |
| 920 , m_dispatchContextLostEventTimer(this, &WebGLRenderingContextBase::dispatch
ContextLostEvent) | 920 , m_dispatchContextLostEventTimer(this, &WebGLRenderingContextBase::dispatch
ContextLostEvent) |
| 921 , m_restoreAllowed(false) | 921 , m_restoreAllowed(false) |
| 922 , m_restoreTimer(this, &WebGLRenderingContextBase::maybeRestoreContext) | 922 , m_restoreTimer(this, &WebGLRenderingContextBase::maybeRestoreContext) |
| 923 , m_preservedDefaultVAOObjectWrapper(false) | 923 , m_preservedDefaultVAOObjectWrapper(false) |
| 924 , m_generatedImageCache(4) | 924 , m_generatedImageCache(4) |
| 925 , m_requestedAttributes(requestedAttributes) | 925 , m_requestedAttributes(requestedAttributes) |
| 926 , m_synthesizedErrorsToConsole(true) | 926 , m_synthesizedErrorsToConsole(true) |
| (...skipping 5568 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6495 contextGL()->PixelStorei(GL_UNPACK_ALIGNMENT, 1); | 6495 contextGL()->PixelStorei(GL_UNPACK_ALIGNMENT, 1); |
| 6496 } | 6496 } |
| 6497 | 6497 |
| 6498 void WebGLRenderingContextBase::restoreUnpackParameters() | 6498 void WebGLRenderingContextBase::restoreUnpackParameters() |
| 6499 { | 6499 { |
| 6500 if (m_unpackAlignment != 1) | 6500 if (m_unpackAlignment != 1) |
| 6501 contextGL()->PixelStorei(GL_UNPACK_ALIGNMENT, m_unpackAlignment); | 6501 contextGL()->PixelStorei(GL_UNPACK_ALIGNMENT, m_unpackAlignment); |
| 6502 } | 6502 } |
| 6503 | 6503 |
| 6504 } // namespace blink | 6504 } // namespace blink |
| OLD | NEW |