OLD | NEW |
---|---|
1 // Copyright (c) 2016 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2016 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "gpu/command_buffer/service/gles2_cmd_decoder_passthrough.h" | 5 #include "gpu/command_buffer/service/gles2_cmd_decoder_passthrough.h" |
6 | 6 |
7 #include "base/strings/string_number_conversions.h" | 7 #include "base/strings/string_number_conversions.h" |
8 | 8 |
9 namespace gpu { | 9 namespace gpu { |
10 namespace gles2 { | 10 namespace gles2 { |
(...skipping 857 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
868 GLint* result) { | 868 GLint* result) { |
869 NOTIMPLEMENTED(); | 869 NOTIMPLEMENTED(); |
870 return error::kNoError; | 870 return error::kNoError; |
871 } | 871 } |
872 | 872 |
873 error::Error GLES2DecoderPassthroughImpl::DoGetBooleanv(GLenum pname, | 873 error::Error GLES2DecoderPassthroughImpl::DoGetBooleanv(GLenum pname, |
874 GLsizei bufsize, | 874 GLsizei bufsize, |
875 GLsizei* length, | 875 GLsizei* length, |
876 GLboolean* params) { | 876 GLboolean* params) { |
877 glGetBooleanvRobustANGLE(pname, bufsize, length, params); | 877 glGetBooleanvRobustANGLE(pname, bufsize, length, params); |
878 return error::kNoError; | 878 return PatchGetNumericResults(pname, *length, params); |
piman
2016/11/16 18:55:22
This makes me uncomfortable. params is in shared m
Geoff Lang
2016/11/17 19:35:01
Good point, I didn't think about these being in sh
| |
879 } | 879 } |
880 | 880 |
881 error::Error GLES2DecoderPassthroughImpl::DoGetBufferParameteri64v( | 881 error::Error GLES2DecoderPassthroughImpl::DoGetBufferParameteri64v( |
882 GLenum target, | 882 GLenum target, |
883 GLenum pname, | 883 GLenum pname, |
884 GLsizei bufsize, | 884 GLsizei bufsize, |
885 GLsizei* length, | 885 GLsizei* length, |
886 GLint64* params) { | 886 GLint64* params) { |
887 glGetBufferParameteri64vRobustANGLE(target, pname, bufsize, length, params); | 887 glGetBufferParameteri64vRobustANGLE(target, pname, bufsize, length, params); |
888 return error::kNoError; | 888 return error::kNoError; |
(...skipping 12 matching lines...) Expand all Loading... | |
901 error::Error GLES2DecoderPassthroughImpl::DoGetError(uint32_t* result) { | 901 error::Error GLES2DecoderPassthroughImpl::DoGetError(uint32_t* result) { |
902 *result = glGetError(); | 902 *result = glGetError(); |
903 return error::kNoError; | 903 return error::kNoError; |
904 } | 904 } |
905 | 905 |
906 error::Error GLES2DecoderPassthroughImpl::DoGetFloatv(GLenum pname, | 906 error::Error GLES2DecoderPassthroughImpl::DoGetFloatv(GLenum pname, |
907 GLsizei bufsize, | 907 GLsizei bufsize, |
908 GLsizei* length, | 908 GLsizei* length, |
909 GLfloat* params) { | 909 GLfloat* params) { |
910 glGetFloatvRobustANGLE(pname, bufsize, length, params); | 910 glGetFloatvRobustANGLE(pname, bufsize, length, params); |
911 return error::kNoError; | 911 return PatchGetNumericResults(pname, *length, params); |
912 } | 912 } |
913 | 913 |
914 error::Error GLES2DecoderPassthroughImpl::DoGetFragDataLocation( | 914 error::Error GLES2DecoderPassthroughImpl::DoGetFragDataLocation( |
915 GLuint program, | 915 GLuint program, |
916 const char* name, | 916 const char* name, |
917 GLint* result) { | 917 GLint* result) { |
918 NOTIMPLEMENTED(); | 918 NOTIMPLEMENTED(); |
919 return error::kNoError; | 919 return error::kNoError; |
920 } | 920 } |
921 | 921 |
922 error::Error GLES2DecoderPassthroughImpl::DoGetFramebufferAttachmentParameteriv( | 922 error::Error GLES2DecoderPassthroughImpl::DoGetFramebufferAttachmentParameteriv( |
923 GLenum target, | 923 GLenum target, |
924 GLenum attachment, | 924 GLenum attachment, |
925 GLenum pname, | 925 GLenum pname, |
926 GLsizei bufsize, | 926 GLsizei bufsize, |
927 GLsizei* length, | 927 GLsizei* length, |
928 GLint* params) { | 928 GLint* params) { |
929 glGetFramebufferAttachmentParameterivRobustANGLE(target, attachment, pname, | 929 glGetFramebufferAttachmentParameterivRobustANGLE(target, attachment, pname, |
930 bufsize, length, params); | 930 bufsize, length, params); |
931 return error::kNoError; | 931 return PatchGetFramebufferAttachmentParameter(target, attachment, pname, |
932 *length, params); | |
932 } | 933 } |
933 | 934 |
934 error::Error GLES2DecoderPassthroughImpl::DoGetInteger64v(GLenum pname, | 935 error::Error GLES2DecoderPassthroughImpl::DoGetInteger64v(GLenum pname, |
935 GLsizei bufsize, | 936 GLsizei bufsize, |
936 GLsizei* length, | 937 GLsizei* length, |
937 GLint64* params) { | 938 GLint64* params) { |
938 glGetInteger64vRobustANGLE(pname, bufsize, length, params); | 939 glGetInteger64vRobustANGLE(pname, bufsize, length, params); |
939 return error::kNoError; | 940 return PatchGetNumericResults(pname, *length, params); |
940 } | 941 } |
941 | 942 |
942 error::Error GLES2DecoderPassthroughImpl::DoGetIntegeri_v(GLenum pname, | 943 error::Error GLES2DecoderPassthroughImpl::DoGetIntegeri_v(GLenum pname, |
943 GLuint index, | 944 GLuint index, |
944 GLsizei bufsize, | 945 GLsizei bufsize, |
945 GLsizei* length, | 946 GLsizei* length, |
946 GLint* data) { | 947 GLint* data) { |
947 glGetIntegeri_vRobustANGLE(pname, index, bufsize, length, data); | 948 glGetIntegeri_vRobustANGLE(pname, index, bufsize, length, data); |
948 return error::kNoError; | 949 return error::kNoError; |
949 } | 950 } |
950 | 951 |
951 error::Error GLES2DecoderPassthroughImpl::DoGetInteger64i_v(GLenum pname, | 952 error::Error GLES2DecoderPassthroughImpl::DoGetInteger64i_v(GLenum pname, |
952 GLuint index, | 953 GLuint index, |
953 GLsizei bufsize, | 954 GLsizei bufsize, |
954 GLsizei* length, | 955 GLsizei* length, |
955 GLint64* data) { | 956 GLint64* data) { |
956 glGetInteger64i_vRobustANGLE(pname, index, bufsize, length, data); | 957 glGetInteger64i_vRobustANGLE(pname, index, bufsize, length, data); |
957 return error::kNoError; | 958 return error::kNoError; |
958 } | 959 } |
959 | 960 |
960 error::Error GLES2DecoderPassthroughImpl::DoGetIntegerv(GLenum pname, | 961 error::Error GLES2DecoderPassthroughImpl::DoGetIntegerv(GLenum pname, |
961 GLsizei bufsize, | 962 GLsizei bufsize, |
962 GLsizei* length, | 963 GLsizei* length, |
963 GLint* params) { | 964 GLint* params) { |
964 glGetIntegervRobustANGLE(pname, bufsize, length, params); | 965 glGetIntegervRobustANGLE(pname, bufsize, length, params); |
965 return error::kNoError; | 966 return PatchGetNumericResults(pname, *length, params); |
966 } | 967 } |
967 | 968 |
968 error::Error GLES2DecoderPassthroughImpl::DoGetInternalformativ(GLenum target, | 969 error::Error GLES2DecoderPassthroughImpl::DoGetInternalformativ(GLenum target, |
969 GLenum format, | 970 GLenum format, |
970 GLenum pname, | 971 GLenum pname, |
971 GLsizei bufSize, | 972 GLsizei bufSize, |
972 GLsizei* length, | 973 GLsizei* length, |
973 GLint* params) { | 974 GLint* params) { |
974 glGetInternalformativRobustANGLE(target, format, pname, bufSize, length, | 975 glGetInternalformativRobustANGLE(target, format, pname, bufSize, length, |
975 params); | 976 params); |
(...skipping 2043 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
3019 GLES2DecoderPassthroughImpl::DoUniformMatrix4fvStreamTextureMatrixCHROMIUM( | 3020 GLES2DecoderPassthroughImpl::DoUniformMatrix4fvStreamTextureMatrixCHROMIUM( |
3020 GLint location, | 3021 GLint location, |
3021 GLboolean transpose, | 3022 GLboolean transpose, |
3022 const volatile GLfloat* defaultValue) { | 3023 const volatile GLfloat* defaultValue) { |
3023 NOTIMPLEMENTED(); | 3024 NOTIMPLEMENTED(); |
3024 return error::kNoError; | 3025 return error::kNoError; |
3025 } | 3026 } |
3026 | 3027 |
3027 } // namespace gles2 | 3028 } // namespace gles2 |
3028 } // namespace gpu | 3029 } // namespace gpu |
OLD | NEW |