| 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 6120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6131 visitor->trace(m_texture2DBinding); | 6131 visitor->trace(m_texture2DBinding); |
| 6132 visitor->trace(m_textureCubeMapBinding); | 6132 visitor->trace(m_textureCubeMapBinding); |
| 6133 visitor->trace(m_texture3DBinding); | 6133 visitor->trace(m_texture3DBinding); |
| 6134 visitor->trace(m_texture2DArrayBinding); | 6134 visitor->trace(m_texture2DArrayBinding); |
| 6135 } | 6135 } |
| 6136 | 6136 |
| 6137 DEFINE_TRACE(WebGLRenderingContextBase) | 6137 DEFINE_TRACE(WebGLRenderingContextBase) |
| 6138 { | 6138 { |
| 6139 #if ENABLE(OILPAN) | 6139 #if ENABLE(OILPAN) |
| 6140 visitor->trace(m_contextObjects); | 6140 visitor->trace(m_contextObjects); |
| 6141 #endif | |
| 6142 visitor->trace(m_contextLostCallbackAdapter); | 6141 visitor->trace(m_contextLostCallbackAdapter); |
| 6143 visitor->trace(m_errorMessageCallbackAdapter); | 6142 visitor->trace(m_errorMessageCallbackAdapter); |
| 6144 visitor->trace(m_boundArrayBuffer); | 6143 visitor->trace(m_boundArrayBuffer); |
| 6145 visitor->trace(m_defaultVertexArrayObject); | 6144 visitor->trace(m_defaultVertexArrayObject); |
| 6146 visitor->trace(m_boundVertexArrayObject); | 6145 visitor->trace(m_boundVertexArrayObject); |
| 6147 visitor->trace(m_vertexAttrib0Buffer); | 6146 visitor->trace(m_vertexAttrib0Buffer); |
| 6148 visitor->trace(m_currentProgram); | 6147 visitor->trace(m_currentProgram); |
| 6149 visitor->trace(m_framebufferBinding); | 6148 visitor->trace(m_framebufferBinding); |
| 6150 visitor->trace(m_renderbufferBinding); | 6149 visitor->trace(m_renderbufferBinding); |
| 6151 visitor->trace(m_valuebufferBinding); | 6150 visitor->trace(m_valuebufferBinding); |
| 6152 visitor->trace(m_textureUnits); | 6151 visitor->trace(m_textureUnits); |
| 6153 visitor->trace(m_blackTexture2D); | 6152 visitor->trace(m_blackTexture2D); |
| 6154 visitor->trace(m_blackTextureCubeMap); | 6153 visitor->trace(m_blackTextureCubeMap); |
| 6155 visitor->trace(m_requestedAttributes); | 6154 visitor->trace(m_requestedAttributes); |
| 6156 visitor->trace(m_extensions); | 6155 visitor->trace(m_extensions); |
| 6156 #endif |
| 6157 CanvasRenderingContext::trace(visitor); | 6157 CanvasRenderingContext::trace(visitor); |
| 6158 } | 6158 } |
| 6159 | 6159 |
| 6160 int WebGLRenderingContextBase::externallyAllocatedBytesPerPixel() | 6160 int WebGLRenderingContextBase::externallyAllocatedBytesPerPixel() |
| 6161 { | 6161 { |
| 6162 if (isContextLost()) | 6162 if (isContextLost()) |
| 6163 return 0; | 6163 return 0; |
| 6164 | 6164 |
| 6165 int bytesPerPixel = 4; | 6165 int bytesPerPixel = 4; |
| 6166 int totalBytesPerPixel = bytesPerPixel * 2; // WebGL's front and back color
buffers. | 6166 int totalBytesPerPixel = bytesPerPixel * 2; // WebGL's front and back color
buffers. |
| (...skipping 27 matching lines...) Expand all Loading... |
| 6194 return m_sharedWebGraphicsContext3D ? m_sharedWebGraphicsContext3D->drawingB
uffer() : 0; | 6194 return m_sharedWebGraphicsContext3D ? m_sharedWebGraphicsContext3D->drawingB
uffer() : 0; |
| 6195 } | 6195 } |
| 6196 #else | 6196 #else |
| 6197 DrawingBuffer* WebGLRenderingContextBase::drawingBuffer() const | 6197 DrawingBuffer* WebGLRenderingContextBase::drawingBuffer() const |
| 6198 { | 6198 { |
| 6199 return m_drawingBuffer.get(); | 6199 return m_drawingBuffer.get(); |
| 6200 } | 6200 } |
| 6201 #endif | 6201 #endif |
| 6202 | 6202 |
| 6203 } // namespace blink | 6203 } // namespace blink |
| OLD | NEW |