Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(346)

Side by Side Diff: third_party/WebKit/Source/modules/webgl/WebGLRenderingContextBase.h

Issue 2818493002: Revert of Fix broken draw/upload paths from videos to 2D canvas and WebGL. (Closed)
Patch Set: Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 1090 matching lines...) Expand 10 before | Expand all | Expand 10 after
1101 // read-back to system memory. Source could be canvas or imageBitmap. 1101 // read-back to system memory. Source could be canvas or imageBitmap.
1102 void TexImageByGPU(TexImageFunctionID, 1102 void TexImageByGPU(TexImageFunctionID,
1103 WebGLTexture*, 1103 WebGLTexture*,
1104 GLenum target, 1104 GLenum target,
1105 GLint level, 1105 GLint level,
1106 GLint xoffset, 1106 GLint xoffset,
1107 GLint yoffset, 1107 GLint yoffset,
1108 GLint zoffset, 1108 GLint zoffset,
1109 CanvasImageSource*, 1109 CanvasImageSource*,
1110 const IntRect& source_sub_rectangle); 1110 const IntRect& source_sub_rectangle);
1111 bool CanUseTexImageByGPU(GLenum format, GLenum type); 1111 virtual bool CanUseTexImageByGPU(GLenum type);
1112 1112
1113 virtual WebGLImageConversion::PixelStoreParams GetPackPixelStoreParams(); 1113 virtual WebGLImageConversion::PixelStoreParams GetPackPixelStoreParams();
1114 virtual WebGLImageConversion::PixelStoreParams GetUnpackPixelStoreParams( 1114 virtual WebGLImageConversion::PixelStoreParams GetUnpackPixelStoreParams(
1115 TexImageDimension); 1115 TexImageDimension);
1116 1116
1117 // Helper function for copyTex{Sub}Image, check whether the internalformat 1117 // Helper function for copyTex{Sub}Image, check whether the internalformat
1118 // and the color buffer format of the current bound framebuffer combination 1118 // and the color buffer format of the current bound framebuffer combination
1119 // is valid. 1119 // is valid.
1120 bool IsTexInternalFormatColorBufferCombinationValid( 1120 bool IsTexInternalFormatColorBufferCombinationValid(
1121 GLenum tex_internal_format, 1121 GLenum tex_internal_format,
(...skipping 548 matching lines...) Expand 10 before | Expand all | Expand 10 after
1670 context, 1670 context,
1671 context->Is3d(), 1671 context->Is3d(),
1672 context.Is3d()); 1672 context.Is3d());
1673 1673
1674 } // namespace blink 1674 } // namespace blink
1675 1675
1676 WTF_ALLOW_MOVE_INIT_AND_COMPARE_WITH_MEM_FUNCTIONS( 1676 WTF_ALLOW_MOVE_INIT_AND_COMPARE_WITH_MEM_FUNCTIONS(
1677 blink::WebGLRenderingContextBase::TextureUnitState); 1677 blink::WebGLRenderingContextBase::TextureUnitState);
1678 1678
1679 #endif // WebGLRenderingContextBase_h 1679 #endif // WebGLRenderingContextBase_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698