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

Side by Side Diff: gpu/command_buffer/service/gles2_cmd_decoder_autogen.h

Issue 247283005: Update GPU command buffer auto formatting. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase. Remove mojo/ change. Created 6 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 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 // This file is auto-generated from 5 // This file is auto-generated from
6 // gpu/command_buffer/build_gles2_cmd_buffer.py 6 // gpu/command_buffer/build_gles2_cmd_buffer.py
7 // It's formatted by clang-format using chromium coding style: 7 // It's formatted by clang-format using chromium coding style:
8 // clang-format -i -style=chromium filename 8 // clang-format -i -style=chromium filename
9 // DO NOT EDIT! 9 // DO NOT EDIT!
10 10
(...skipping 1941 matching lines...) Expand 10 before | Expand all | Expand 10 after
1952 } 1952 }
1953 DoTexParameteriv(target, pname, params); 1953 DoTexParameteriv(target, pname, params);
1954 return error::kNoError; 1954 return error::kNoError;
1955 } 1955 }
1956 1956
1957 error::Error GLES2DecoderImpl::HandleUniform1f( 1957 error::Error GLES2DecoderImpl::HandleUniform1f(
1958 uint32 immediate_data_size, 1958 uint32 immediate_data_size,
1959 const gles2::cmds::Uniform1f& c) { 1959 const gles2::cmds::Uniform1f& c) {
1960 GLint location = static_cast<GLint>(c.location); 1960 GLint location = static_cast<GLint>(c.location);
1961 GLfloat x = static_cast<GLfloat>(c.x); 1961 GLfloat x = static_cast<GLfloat>(c.x);
1962 GLfloat temp[1] = {x, }; 1962 GLfloat temp[1] = {
1963 x,
1964 };
1963 DoUniform1fv(location, 1, &temp[0]); 1965 DoUniform1fv(location, 1, &temp[0]);
1964 return error::kNoError; 1966 return error::kNoError;
1965 } 1967 }
1966 1968
1967 error::Error GLES2DecoderImpl::HandleUniform1fv( 1969 error::Error GLES2DecoderImpl::HandleUniform1fv(
1968 uint32 immediate_data_size, 1970 uint32 immediate_data_size,
1969 const gles2::cmds::Uniform1fv& c) { 1971 const gles2::cmds::Uniform1fv& c) {
1970 GLint location = static_cast<GLint>(c.location); 1972 GLint location = static_cast<GLint>(c.location);
1971 GLsizei count = static_cast<GLsizei>(c.count); 1973 GLsizei count = static_cast<GLsizei>(c.count);
1972 uint32 data_size; 1974 uint32 data_size;
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
2050 DoUniform1iv(location, count, v); 2052 DoUniform1iv(location, count, v);
2051 return error::kNoError; 2053 return error::kNoError;
2052 } 2054 }
2053 2055
2054 error::Error GLES2DecoderImpl::HandleUniform2f( 2056 error::Error GLES2DecoderImpl::HandleUniform2f(
2055 uint32 immediate_data_size, 2057 uint32 immediate_data_size,
2056 const gles2::cmds::Uniform2f& c) { 2058 const gles2::cmds::Uniform2f& c) {
2057 GLint location = static_cast<GLint>(c.location); 2059 GLint location = static_cast<GLint>(c.location);
2058 GLfloat x = static_cast<GLfloat>(c.x); 2060 GLfloat x = static_cast<GLfloat>(c.x);
2059 GLfloat y = static_cast<GLfloat>(c.y); 2061 GLfloat y = static_cast<GLfloat>(c.y);
2060 GLfloat temp[2] = {x, y, }; 2062 GLfloat temp[2] = {
2063 x, y,
2064 };
2061 DoUniform2fv(location, 1, &temp[0]); 2065 DoUniform2fv(location, 1, &temp[0]);
2062 return error::kNoError; 2066 return error::kNoError;
2063 } 2067 }
2064 2068
2065 error::Error GLES2DecoderImpl::HandleUniform2fv( 2069 error::Error GLES2DecoderImpl::HandleUniform2fv(
2066 uint32 immediate_data_size, 2070 uint32 immediate_data_size,
2067 const gles2::cmds::Uniform2fv& c) { 2071 const gles2::cmds::Uniform2fv& c) {
2068 GLint location = static_cast<GLint>(c.location); 2072 GLint location = static_cast<GLint>(c.location);
2069 GLsizei count = static_cast<GLsizei>(c.count); 2073 GLsizei count = static_cast<GLsizei>(c.count);
2070 uint32 data_size; 2074 uint32 data_size;
(...skipping 29 matching lines...) Expand all
2100 DoUniform2fv(location, count, v); 2104 DoUniform2fv(location, count, v);
2101 return error::kNoError; 2105 return error::kNoError;
2102 } 2106 }
2103 2107
2104 error::Error GLES2DecoderImpl::HandleUniform2i( 2108 error::Error GLES2DecoderImpl::HandleUniform2i(
2105 uint32 immediate_data_size, 2109 uint32 immediate_data_size,
2106 const gles2::cmds::Uniform2i& c) { 2110 const gles2::cmds::Uniform2i& c) {
2107 GLint location = static_cast<GLint>(c.location); 2111 GLint location = static_cast<GLint>(c.location);
2108 GLint x = static_cast<GLint>(c.x); 2112 GLint x = static_cast<GLint>(c.x);
2109 GLint y = static_cast<GLint>(c.y); 2113 GLint y = static_cast<GLint>(c.y);
2110 GLint temp[2] = {x, y, }; 2114 GLint temp[2] = {
2115 x, y,
2116 };
2111 DoUniform2iv(location, 1, &temp[0]); 2117 DoUniform2iv(location, 1, &temp[0]);
2112 return error::kNoError; 2118 return error::kNoError;
2113 } 2119 }
2114 2120
2115 error::Error GLES2DecoderImpl::HandleUniform2iv( 2121 error::Error GLES2DecoderImpl::HandleUniform2iv(
2116 uint32 immediate_data_size, 2122 uint32 immediate_data_size,
2117 const gles2::cmds::Uniform2iv& c) { 2123 const gles2::cmds::Uniform2iv& c) {
2118 GLint location = static_cast<GLint>(c.location); 2124 GLint location = static_cast<GLint>(c.location);
2119 GLsizei count = static_cast<GLsizei>(c.count); 2125 GLsizei count = static_cast<GLsizei>(c.count);
2120 uint32 data_size; 2126 uint32 data_size;
(...skipping 30 matching lines...) Expand all
2151 return error::kNoError; 2157 return error::kNoError;
2152 } 2158 }
2153 2159
2154 error::Error GLES2DecoderImpl::HandleUniform3f( 2160 error::Error GLES2DecoderImpl::HandleUniform3f(
2155 uint32 immediate_data_size, 2161 uint32 immediate_data_size,
2156 const gles2::cmds::Uniform3f& c) { 2162 const gles2::cmds::Uniform3f& c) {
2157 GLint location = static_cast<GLint>(c.location); 2163 GLint location = static_cast<GLint>(c.location);
2158 GLfloat x = static_cast<GLfloat>(c.x); 2164 GLfloat x = static_cast<GLfloat>(c.x);
2159 GLfloat y = static_cast<GLfloat>(c.y); 2165 GLfloat y = static_cast<GLfloat>(c.y);
2160 GLfloat z = static_cast<GLfloat>(c.z); 2166 GLfloat z = static_cast<GLfloat>(c.z);
2161 GLfloat temp[3] = {x, y, z, }; 2167 GLfloat temp[3] = {
2168 x, y, z,
2169 };
2162 DoUniform3fv(location, 1, &temp[0]); 2170 DoUniform3fv(location, 1, &temp[0]);
2163 return error::kNoError; 2171 return error::kNoError;
2164 } 2172 }
2165 2173
2166 error::Error GLES2DecoderImpl::HandleUniform3fv( 2174 error::Error GLES2DecoderImpl::HandleUniform3fv(
2167 uint32 immediate_data_size, 2175 uint32 immediate_data_size,
2168 const gles2::cmds::Uniform3fv& c) { 2176 const gles2::cmds::Uniform3fv& c) {
2169 GLint location = static_cast<GLint>(c.location); 2177 GLint location = static_cast<GLint>(c.location);
2170 GLsizei count = static_cast<GLsizei>(c.count); 2178 GLsizei count = static_cast<GLsizei>(c.count);
2171 uint32 data_size; 2179 uint32 data_size;
(...skipping 30 matching lines...) Expand all
2202 return error::kNoError; 2210 return error::kNoError;
2203 } 2211 }
2204 2212
2205 error::Error GLES2DecoderImpl::HandleUniform3i( 2213 error::Error GLES2DecoderImpl::HandleUniform3i(
2206 uint32 immediate_data_size, 2214 uint32 immediate_data_size,
2207 const gles2::cmds::Uniform3i& c) { 2215 const gles2::cmds::Uniform3i& c) {
2208 GLint location = static_cast<GLint>(c.location); 2216 GLint location = static_cast<GLint>(c.location);
2209 GLint x = static_cast<GLint>(c.x); 2217 GLint x = static_cast<GLint>(c.x);
2210 GLint y = static_cast<GLint>(c.y); 2218 GLint y = static_cast<GLint>(c.y);
2211 GLint z = static_cast<GLint>(c.z); 2219 GLint z = static_cast<GLint>(c.z);
2212 GLint temp[3] = {x, y, z, }; 2220 GLint temp[3] = {
2221 x, y, z,
2222 };
2213 DoUniform3iv(location, 1, &temp[0]); 2223 DoUniform3iv(location, 1, &temp[0]);
2214 return error::kNoError; 2224 return error::kNoError;
2215 } 2225 }
2216 2226
2217 error::Error GLES2DecoderImpl::HandleUniform3iv( 2227 error::Error GLES2DecoderImpl::HandleUniform3iv(
2218 uint32 immediate_data_size, 2228 uint32 immediate_data_size,
2219 const gles2::cmds::Uniform3iv& c) { 2229 const gles2::cmds::Uniform3iv& c) {
2220 GLint location = static_cast<GLint>(c.location); 2230 GLint location = static_cast<GLint>(c.location);
2221 GLsizei count = static_cast<GLsizei>(c.count); 2231 GLsizei count = static_cast<GLsizei>(c.count);
2222 uint32 data_size; 2232 uint32 data_size;
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
2254 } 2264 }
2255 2265
2256 error::Error GLES2DecoderImpl::HandleUniform4f( 2266 error::Error GLES2DecoderImpl::HandleUniform4f(
2257 uint32 immediate_data_size, 2267 uint32 immediate_data_size,
2258 const gles2::cmds::Uniform4f& c) { 2268 const gles2::cmds::Uniform4f& c) {
2259 GLint location = static_cast<GLint>(c.location); 2269 GLint location = static_cast<GLint>(c.location);
2260 GLfloat x = static_cast<GLfloat>(c.x); 2270 GLfloat x = static_cast<GLfloat>(c.x);
2261 GLfloat y = static_cast<GLfloat>(c.y); 2271 GLfloat y = static_cast<GLfloat>(c.y);
2262 GLfloat z = static_cast<GLfloat>(c.z); 2272 GLfloat z = static_cast<GLfloat>(c.z);
2263 GLfloat w = static_cast<GLfloat>(c.w); 2273 GLfloat w = static_cast<GLfloat>(c.w);
2264 GLfloat temp[4] = {x, y, z, w, }; 2274 GLfloat temp[4] = {
2275 x, y, z, w,
2276 };
2265 DoUniform4fv(location, 1, &temp[0]); 2277 DoUniform4fv(location, 1, &temp[0]);
2266 return error::kNoError; 2278 return error::kNoError;
2267 } 2279 }
2268 2280
2269 error::Error GLES2DecoderImpl::HandleUniform4fv( 2281 error::Error GLES2DecoderImpl::HandleUniform4fv(
2270 uint32 immediate_data_size, 2282 uint32 immediate_data_size,
2271 const gles2::cmds::Uniform4fv& c) { 2283 const gles2::cmds::Uniform4fv& c) {
2272 GLint location = static_cast<GLint>(c.location); 2284 GLint location = static_cast<GLint>(c.location);
2273 GLsizei count = static_cast<GLsizei>(c.count); 2285 GLsizei count = static_cast<GLsizei>(c.count);
2274 uint32 data_size; 2286 uint32 data_size;
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
2306 } 2318 }
2307 2319
2308 error::Error GLES2DecoderImpl::HandleUniform4i( 2320 error::Error GLES2DecoderImpl::HandleUniform4i(
2309 uint32 immediate_data_size, 2321 uint32 immediate_data_size,
2310 const gles2::cmds::Uniform4i& c) { 2322 const gles2::cmds::Uniform4i& c) {
2311 GLint location = static_cast<GLint>(c.location); 2323 GLint location = static_cast<GLint>(c.location);
2312 GLint x = static_cast<GLint>(c.x); 2324 GLint x = static_cast<GLint>(c.x);
2313 GLint y = static_cast<GLint>(c.y); 2325 GLint y = static_cast<GLint>(c.y);
2314 GLint z = static_cast<GLint>(c.z); 2326 GLint z = static_cast<GLint>(c.z);
2315 GLint w = static_cast<GLint>(c.w); 2327 GLint w = static_cast<GLint>(c.w);
2316 GLint temp[4] = {x, y, z, w, }; 2328 GLint temp[4] = {
2329 x, y, z, w,
2330 };
2317 DoUniform4iv(location, 1, &temp[0]); 2331 DoUniform4iv(location, 1, &temp[0]);
2318 return error::kNoError; 2332 return error::kNoError;
2319 } 2333 }
2320 2334
2321 error::Error GLES2DecoderImpl::HandleUniform4iv( 2335 error::Error GLES2DecoderImpl::HandleUniform4iv(
2322 uint32 immediate_data_size, 2336 uint32 immediate_data_size,
2323 const gles2::cmds::Uniform4iv& c) { 2337 const gles2::cmds::Uniform4iv& c) {
2324 GLint location = static_cast<GLint>(c.location); 2338 GLint location = static_cast<GLint>(c.location);
2325 GLsizei count = static_cast<GLsizei>(c.count); 2339 GLsizei count = static_cast<GLsizei>(c.count);
2326 uint32 data_size; 2340 uint32 data_size;
(...skipping 1143 matching lines...) Expand 10 before | Expand all | Expand 10 after
3470 state_.enable_flags.stencil_test = enabled; 3484 state_.enable_flags.stencil_test = enabled;
3471 framebuffer_state_.clear_state_dirty = true; 3485 framebuffer_state_.clear_state_dirty = true;
3472 } 3486 }
3473 return false; 3487 return false;
3474 default: 3488 default:
3475 NOTREACHED(); 3489 NOTREACHED();
3476 return false; 3490 return false;
3477 } 3491 }
3478 } 3492 }
3479 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_AUTOGEN_H_ 3493 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_AUTOGEN_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698