| 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 7675 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 7686 visitor->traceWrappers(m_boundVertexArrayObject); | 7686 visitor->traceWrappers(m_boundVertexArrayObject); |
| 7687 // Trace wrappers explicitly here since TextureUnitState is not a heap | 7687 // Trace wrappers explicitly here since TextureUnitState is not a heap |
| 7688 // object, i.e., we cannot set its mark bits. | 7688 // object, i.e., we cannot set its mark bits. |
| 7689 for (auto& unit : m_textureUnits) { | 7689 for (auto& unit : m_textureUnits) { |
| 7690 visitor->traceWrappers(unit.m_texture2DBinding); | 7690 visitor->traceWrappers(unit.m_texture2DBinding); |
| 7691 visitor->traceWrappers(unit.m_textureCubeMapBinding); | 7691 visitor->traceWrappers(unit.m_textureCubeMapBinding); |
| 7692 visitor->traceWrappers(unit.m_texture3DBinding); | 7692 visitor->traceWrappers(unit.m_texture3DBinding); |
| 7693 visitor->traceWrappers(unit.m_texture2DArrayBinding); | 7693 visitor->traceWrappers(unit.m_texture2DArrayBinding); |
| 7694 } | 7694 } |
| 7695 for (ExtensionTracker* tracker : m_extensions) { | 7695 for (ExtensionTracker* tracker : m_extensions) { |
| 7696 WebGLExtension* extension = tracker->getExtensionObjectIfAlreadyEnabled(); | 7696 visitor->traceWrappers(tracker); |
| 7697 visitor->traceWrappers(extension); | |
| 7698 } | 7697 } |
| 7699 CanvasRenderingContext::traceWrappers(visitor); | 7698 CanvasRenderingContext::traceWrappers(visitor); |
| 7700 } | 7699 } |
| 7701 | 7700 |
| 7702 int WebGLRenderingContextBase::externallyAllocatedBytesPerPixel() { | 7701 int WebGLRenderingContextBase::externallyAllocatedBytesPerPixel() { |
| 7703 if (isContextLost()) | 7702 if (isContextLost()) |
| 7704 return 0; | 7703 return 0; |
| 7705 | 7704 |
| 7706 int bytesPerPixel = 4; | 7705 int bytesPerPixel = 4; |
| 7707 int totalBytesPerPixel = | 7706 int totalBytesPerPixel = |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 7744 | 7743 |
| 7745 void WebGLRenderingContextBase::getHTMLOrOffscreenCanvas( | 7744 void WebGLRenderingContextBase::getHTMLOrOffscreenCanvas( |
| 7746 HTMLCanvasElementOrOffscreenCanvas& result) const { | 7745 HTMLCanvasElementOrOffscreenCanvas& result) const { |
| 7747 if (canvas()) | 7746 if (canvas()) |
| 7748 result.setHTMLCanvasElement(canvas()); | 7747 result.setHTMLCanvasElement(canvas()); |
| 7749 else | 7748 else |
| 7750 result.setOffscreenCanvas(getOffscreenCanvas()); | 7749 result.setOffscreenCanvas(getOffscreenCanvas()); |
| 7751 } | 7750 } |
| 7752 | 7751 |
| 7753 } // namespace blink | 7752 } // namespace blink |
| OLD | NEW |