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

Side by Side Diff: Source/core/html/canvas/WebGLRenderingContextBase.h

Issue 981913002: update getFramebufferAttachmentParameter for WebGL 2 (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: addressed kbr@'s feedback + rebased code Created 5 years, 7 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 184 matching lines...) Expand 10 before | Expand all | Expand 10 after
195 195
196 PassRefPtrWillBeRawPtr<WebGLActiveInfo> getActiveAttrib(WebGLProgram*, GLuin t index); 196 PassRefPtrWillBeRawPtr<WebGLActiveInfo> getActiveAttrib(WebGLProgram*, GLuin t index);
197 PassRefPtrWillBeRawPtr<WebGLActiveInfo> getActiveUniform(WebGLProgram*, GLui nt index); 197 PassRefPtrWillBeRawPtr<WebGLActiveInfo> getActiveUniform(WebGLProgram*, GLui nt index);
198 bool getAttachedShaders(WebGLProgram*, WillBeHeapVector<RefPtrWillBeMember<W ebGLShader>>&); 198 bool getAttachedShaders(WebGLProgram*, WillBeHeapVector<RefPtrWillBeMember<W ebGLShader>>&);
199 Nullable<WillBeHeapVector<RefPtrWillBeMember<WebGLShader>>> getAttachedShade rs(WebGLProgram*); 199 Nullable<WillBeHeapVector<RefPtrWillBeMember<WebGLShader>>> getAttachedShade rs(WebGLProgram*);
200 GLint getAttribLocation(WebGLProgram*, const String& name); 200 GLint getAttribLocation(WebGLProgram*, const String& name);
201 ScriptValue getBufferParameter(ScriptState*, GLenum target, GLenum pname); 201 ScriptValue getBufferParameter(ScriptState*, GLenum target, GLenum pname);
202 void getContextAttributes(Nullable<WebGLContextAttributes>&); 202 void getContextAttributes(Nullable<WebGLContextAttributes>&);
203 GLenum getError(); 203 GLenum getError();
204 ScriptValue getExtension(ScriptState*, const String& name); 204 ScriptValue getExtension(ScriptState*, const String& name);
205 ScriptValue getFramebufferAttachmentParameter(ScriptState*, GLenum target, G Lenum attachment, GLenum pname); 205 virtual ScriptValue getFramebufferAttachmentParameter(ScriptState*, GLenum t arget, GLenum attachment, GLenum pname);
206 virtual ScriptValue getParameter(ScriptState*, GLenum pname); 206 virtual ScriptValue getParameter(ScriptState*, GLenum pname);
207 ScriptValue getProgramParameter(ScriptState*, WebGLProgram*, GLenum pname); 207 ScriptValue getProgramParameter(ScriptState*, WebGLProgram*, GLenum pname);
208 String getProgramInfoLog(WebGLProgram*); 208 String getProgramInfoLog(WebGLProgram*);
209 ScriptValue getRenderbufferParameter(ScriptState*, GLenum target, GLenum pna me); 209 ScriptValue getRenderbufferParameter(ScriptState*, GLenum target, GLenum pna me);
210 ScriptValue getShaderParameter(ScriptState*, WebGLShader*, GLenum pname); 210 ScriptValue getShaderParameter(ScriptState*, WebGLShader*, GLenum pname);
211 String getShaderInfoLog(WebGLShader*); 211 String getShaderInfoLog(WebGLShader*);
212 PassRefPtrWillBeRawPtr<WebGLShaderPrecisionFormat> getShaderPrecisionFormat( GLenum shaderType, GLenum precisionType); 212 PassRefPtrWillBeRawPtr<WebGLShaderPrecisionFormat> getShaderPrecisionFormat( GLenum shaderType, GLenum precisionType);
213 String getShaderSource(WebGLShader*); 213 String getShaderSource(WebGLShader*);
214 Nullable<Vector<String>> getSupportedExtensions(); 214 Nullable<Vector<String>> getSupportedExtensions();
215 virtual ScriptValue getTexParameter(ScriptState*, GLenum target, GLenum pnam e); 215 virtual ScriptValue getTexParameter(ScriptState*, GLenum target, GLenum pnam e);
(...skipping 797 matching lines...) Expand 10 before | Expand all | Expand 10 after
1013 static IntSize oldestContextSize(); 1013 static IntSize oldestContextSize();
1014 }; 1014 };
1015 1015
1016 DEFINE_TYPE_CASTS(WebGLRenderingContextBase, CanvasRenderingContext, context, co ntext->is3d(), context.is3d()); 1016 DEFINE_TYPE_CASTS(WebGLRenderingContextBase, CanvasRenderingContext, context, co ntext->is3d(), context.is3d());
1017 1017
1018 } // namespace blink 1018 } // namespace blink
1019 1019
1020 WTF_ALLOW_MOVE_INIT_AND_COMPARE_WITH_MEM_FUNCTIONS(blink::WebGLRenderingContextB ase::TextureUnitState); 1020 WTF_ALLOW_MOVE_INIT_AND_COMPARE_WITH_MEM_FUNCTIONS(blink::WebGLRenderingContextB ase::TextureUnitState);
1021 1021
1022 #endif // WebGLRenderingContextBase_h 1022 #endif // WebGLRenderingContextBase_h
OLDNEW
« no previous file with comments | « Source/core/html/canvas/WebGL2RenderingContextBase.cpp ('k') | Source/core/html/canvas/WebGLRenderingContextBase.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698