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

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

Issue 1859703002: convert //gpu to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase on master Created 4 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 // 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 1292 matching lines...) Expand 10 before | Expand all | Expand 10 after
1303 } 1303 }
1304 GLuint* ids = GetImmediateDataAs<GLuint*>(c, data_size, immediate_data_size); 1304 GLuint* ids = GetImmediateDataAs<GLuint*>(c, data_size, immediate_data_size);
1305 if (ids == NULL) { 1305 if (ids == NULL) {
1306 return error::kOutOfBounds; 1306 return error::kOutOfBounds;
1307 } 1307 }
1308 for (GLsizei ii = 0; ii < n; ++ii) { 1308 for (GLsizei ii = 0; ii < n; ++ii) {
1309 if (group_->GetTransformFeedbackServiceId(ids[ii], NULL)) { 1309 if (group_->GetTransformFeedbackServiceId(ids[ii], NULL)) {
1310 return error::kInvalidArguments; 1310 return error::kInvalidArguments;
1311 } 1311 }
1312 } 1312 }
1313 scoped_ptr<GLuint[]> service_ids(new GLuint[n]); 1313 std::unique_ptr<GLuint[]> service_ids(new GLuint[n]);
1314 glGenTransformFeedbacks(n, service_ids.get()); 1314 glGenTransformFeedbacks(n, service_ids.get());
1315 for (GLsizei ii = 0; ii < n; ++ii) { 1315 for (GLsizei ii = 0; ii < n; ++ii) {
1316 group_->AddTransformFeedbackId(ids[ii], service_ids[ii]); 1316 group_->AddTransformFeedbackId(ids[ii], service_ids[ii]);
1317 } 1317 }
1318 return error::kNoError; 1318 return error::kNoError;
1319 } 1319 }
1320 1320
1321 error::Error GLES2DecoderImpl::HandleGetBooleanv(uint32_t immediate_data_size, 1321 error::Error GLES2DecoderImpl::HandleGetBooleanv(uint32_t immediate_data_size,
1322 const void* cmd_data) { 1322 const void* cmd_data) {
1323 const gles2::cmds::GetBooleanv& c = 1323 const gles2::cmds::GetBooleanv& c =
(...skipping 3945 matching lines...) Expand 10 before | Expand all | Expand 10 after
5269 state_.enable_flags.cached_sample_alpha_to_one_ext = enabled; 5269 state_.enable_flags.cached_sample_alpha_to_one_ext = enabled;
5270 return true; 5270 return true;
5271 } 5271 }
5272 return false; 5272 return false;
5273 default: 5273 default:
5274 NOTREACHED(); 5274 NOTREACHED();
5275 return false; 5275 return false;
5276 } 5276 }
5277 } 5277 }
5278 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_AUTOGEN_H_ 5278 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_AUTOGEN_H_
OLDNEW
« no previous file with comments | « gpu/command_buffer/service/gles2_cmd_decoder.cc ('k') | gpu/command_buffer/service/gles2_cmd_decoder_unittest_base.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698