| 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 1093 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1104 // read-back to system memory. Source could be canvas or imageBitmap. | 1104 // read-back to system memory. Source could be canvas or imageBitmap. |
| 1105 void TexImageByGPU(TexImageFunctionID, | 1105 void TexImageByGPU(TexImageFunctionID, |
| 1106 WebGLTexture*, | 1106 WebGLTexture*, |
| 1107 GLenum target, | 1107 GLenum target, |
| 1108 GLint level, | 1108 GLint level, |
| 1109 GLint xoffset, | 1109 GLint xoffset, |
| 1110 GLint yoffset, | 1110 GLint yoffset, |
| 1111 GLint zoffset, | 1111 GLint zoffset, |
| 1112 CanvasImageSource*, | 1112 CanvasImageSource*, |
| 1113 const IntRect& source_sub_rectangle); | 1113 const IntRect& source_sub_rectangle); |
| 1114 virtual bool CanUseTexImageByGPU(GLenum type); | 1114 bool CanUseTexImageByGPU(GLenum format, GLenum type); |
| 1115 | 1115 |
| 1116 virtual WebGLImageConversion::PixelStoreParams GetPackPixelStoreParams(); | 1116 virtual WebGLImageConversion::PixelStoreParams GetPackPixelStoreParams(); |
| 1117 virtual WebGLImageConversion::PixelStoreParams GetUnpackPixelStoreParams( | 1117 virtual WebGLImageConversion::PixelStoreParams GetUnpackPixelStoreParams( |
| 1118 TexImageDimension); | 1118 TexImageDimension); |
| 1119 | 1119 |
| 1120 // Helper function for copyTex{Sub}Image, check whether the internalformat | 1120 // Helper function for copyTex{Sub}Image, check whether the internalformat |
| 1121 // and the color buffer format of the current bound framebuffer combination | 1121 // and the color buffer format of the current bound framebuffer combination |
| 1122 // is valid. | 1122 // is valid. |
| 1123 bool IsTexInternalFormatColorBufferCombinationValid( | 1123 bool IsTexInternalFormatColorBufferCombinationValid( |
| 1124 GLenum tex_internal_format, | 1124 GLenum tex_internal_format, |
| (...skipping 548 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1673 context, | 1673 context, |
| 1674 context->Is3d(), | 1674 context->Is3d(), |
| 1675 context.Is3d()); | 1675 context.Is3d()); |
| 1676 | 1676 |
| 1677 } // namespace blink | 1677 } // namespace blink |
| 1678 | 1678 |
| 1679 WTF_ALLOW_MOVE_INIT_AND_COMPARE_WITH_MEM_FUNCTIONS( | 1679 WTF_ALLOW_MOVE_INIT_AND_COMPARE_WITH_MEM_FUNCTIONS( |
| 1680 blink::WebGLRenderingContextBase::TextureUnitState); | 1680 blink::WebGLRenderingContextBase::TextureUnitState); |
| 1681 | 1681 |
| 1682 #endif // WebGLRenderingContextBase_h | 1682 #endif // WebGLRenderingContextBase_h |
| OLD | NEW |