diff options
author | zmo@google.com <zmo@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-03-30 22:25:30 +0000 |
---|---|---|
committer | zmo@google.com <zmo@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-03-30 22:25:30 +0000 |
commit | a6e59b1f9970f63a1ea9fb4a41fcfaf63ae96714 (patch) | |
tree | f50f17f03b359950fd3af3c5fcad20e7a99bf2aa /webkit/gpu | |
parent | 04ff02be83c4960b73b3575f8703e9347bb1f3a3 (diff) | |
download | chromium_src-a6e59b1f9970f63a1ea9fb4a41fcfaf63ae96714.zip chromium_src-a6e59b1f9970f63a1ea9fb4a41fcfaf63ae96714.tar.gz chromium_src-a6e59b1f9970f63a1ea9fb4a41fcfaf63ae96714.tar.bz2 |
Implement GetShaderPrecisionFormat
This is chromium side hookup
BUG=
TEST=
R=gman
Review URL: https://chromiumcodereview.appspot.com/9959042
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@129976 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/gpu')
4 files changed, 13 insertions, 9 deletions
diff --git a/webkit/gpu/webgraphicscontext3d_in_process_command_buffer_impl.cc b/webkit/gpu/webgraphicscontext3d_in_process_command_buffer_impl.cc index 9ef133e..8ad9cc1 100644 --- a/webkit/gpu/webgraphicscontext3d_in_process_command_buffer_impl.cc +++ b/webkit/gpu/webgraphicscontext3d_in_process_command_buffer_impl.cc @@ -1221,6 +1221,9 @@ WebKit::WebString WebGraphicsContext3DInProcessCommandBufferImpl:: return res; } +DELEGATE_TO_GL_4(getShaderPrecisionFormat, GetShaderPrecisionFormat, + WGC3Denum, WGC3Denum, WGC3Dint*, WGC3Dint*) + WebKit::WebString WebGraphicsContext3DInProcessCommandBufferImpl:: getShaderSource(WebGLId shader) { ClearContext(); diff --git a/webkit/gpu/webgraphicscontext3d_in_process_command_buffer_impl.h b/webkit/gpu/webgraphicscontext3d_in_process_command_buffer_impl.h index 947b6d9..aac2019c 100644 --- a/webkit/gpu/webgraphicscontext3d_in_process_command_buffer_impl.h +++ b/webkit/gpu/webgraphicscontext3d_in_process_command_buffer_impl.h @@ -218,11 +218,10 @@ class WebGraphicsContext3DInProcessCommandBufferImpl virtual WebKit::WebString getShaderInfoLog(WebGLId shader); - // TBD - // void glGetShaderPrecisionFormat (GLenum shadertype, - // GLenum precisiontype, - // GLint* range, - // GLint* precision); + virtual void getShaderPrecisionFormat(WGC3Denum shadertype, + WGC3Denum precisiontype, + WGC3Dint* range, + WGC3Dint* precision); virtual WebKit::WebString getShaderSource(WebGLId shader); virtual WebKit::WebString getString(WGC3Denum name); diff --git a/webkit/gpu/webgraphicscontext3d_in_process_impl.cc b/webkit/gpu/webgraphicscontext3d_in_process_impl.cc index 6fefa74..7e2ec0d 100644 --- a/webkit/gpu/webgraphicscontext3d_in_process_impl.cc +++ b/webkit/gpu/webgraphicscontext3d_in_process_impl.cc @@ -1223,6 +1223,9 @@ void WebGraphicsContext3DInProcessImpl::getShaderiv( glGetShaderiv(shader, pname, value); } +DELEGATE_TO_GL_4(getShaderPrecisionFormat, GetShaderPrecisionFormat, + WGC3Denum, WGC3Denum, WGC3Dint*, WGC3Dint*) + WebString WebGraphicsContext3DInProcessImpl::getShaderInfoLog(WebGLId shader) { makeContextCurrent(); diff --git a/webkit/gpu/webgraphicscontext3d_in_process_impl.h b/webkit/gpu/webgraphicscontext3d_in_process_impl.h index 8c13ed0..c0bf7b1 100644 --- a/webkit/gpu/webgraphicscontext3d_in_process_impl.h +++ b/webkit/gpu/webgraphicscontext3d_in_process_impl.h @@ -274,10 +274,9 @@ class WebGraphicsContext3DInProcessImpl : public WebGraphicsContext3D { virtual WebString getShaderInfoLog(WebGLId shader); - // TBD - // void glGetShaderPrecisionFormat( - // GLenum shadertype, GLenum precisiontype, - // GLint* range, GLint* precision); + virtual void getShaderPrecisionFormat( + WGC3Denum shadertype, WGC3Denum precisiontype, + WGC3Dint* range, WGC3Dint* precision); virtual WebString getShaderSource(WebGLId shader); virtual WebString getString(WGC3Denum name); |