Chromium Code Reviews| 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 namespace gpu { | 7 namespace gpu { |
| 8 namespace gles2 { | 8 namespace gles2 { |
| 9 | 9 |
| 10 // Custom Handlers | 10 // Custom Handlers |
| (...skipping 1427 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1438 if (error != error::kNoError) { | 1438 if (error != error::kNoError) { |
| 1439 return error; | 1439 return error; |
| 1440 } | 1440 } |
| 1441 | 1441 |
| 1442 Bucket* bucket = CreateBucket(c.bucket_id); | 1442 Bucket* bucket = CreateBucket(c.bucket_id); |
| 1443 bucket->SetFromString(source.c_str()); | 1443 bucket->SetFromString(source.c_str()); |
| 1444 | 1444 |
| 1445 return error::kNoError; | 1445 return error::kNoError; |
| 1446 } | 1446 } |
| 1447 | 1447 |
| 1448 error::Error GLES2DecoderPassthroughImpl::HandleSwapBuffersWithDamageCHROMIUM( | |
| 1449 uint32_t immediate_data_size, | |
| 1450 const void* cmd_data) { | |
|
piman
2016/09/07 17:19:41
nit: you probably need a rebase because this is vo
halliwell
2016/09/08 04:21:34
Done.
| |
| 1451 const gles2::cmds::SwapBuffersWithDamageCHROMIUM& c = | |
| 1452 *static_cast<const gles2::cmds::SwapBuffersWithDamageCHROMIUM*>(cmd_data); | |
| 1453 GLint x = static_cast<GLint>(c.x); | |
| 1454 GLint y = static_cast<GLint>(c.y); | |
| 1455 GLint width = static_cast<GLint>(c.width); | |
| 1456 GLint height = static_cast<GLint>(c.height); | |
| 1457 error::Error error = DoSwapBuffersWithDamageCHROMIUM(x, y, width, height); | |
| 1458 if (error != error::kNoError) { | |
| 1459 return error; | |
| 1460 } | |
| 1461 return error::kNoError; | |
| 1462 } | |
| 1463 | |
| 1448 error::Error GLES2DecoderPassthroughImpl::HandlePostSubBufferCHROMIUM( | 1464 error::Error GLES2DecoderPassthroughImpl::HandlePostSubBufferCHROMIUM( |
| 1449 uint32_t immediate_data_size, | 1465 uint32_t immediate_data_size, |
| 1450 const void* cmd_data) { | 1466 const void* cmd_data) { |
| 1451 const gles2::cmds::PostSubBufferCHROMIUM& c = | 1467 const gles2::cmds::PostSubBufferCHROMIUM& c = |
| 1452 *static_cast<const gles2::cmds::PostSubBufferCHROMIUM*>(cmd_data); | 1468 *static_cast<const gles2::cmds::PostSubBufferCHROMIUM*>(cmd_data); |
| 1453 GLint x = static_cast<GLint>(c.x); | 1469 GLint x = static_cast<GLint>(c.x); |
| 1454 GLint y = static_cast<GLint>(c.y); | 1470 GLint y = static_cast<GLint>(c.y); |
| 1455 GLint width = static_cast<GLint>(c.width); | 1471 GLint width = static_cast<GLint>(c.width); |
| 1456 GLint height = static_cast<GLint>(c.height); | 1472 GLint height = static_cast<GLint>(c.height); |
| 1457 error::Error error = DoPostSubBufferCHROMIUM(x, y, width, height); | 1473 error::Error error = DoPostSubBufferCHROMIUM(x, y, width, height); |
| (...skipping 888 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 2346 } | 2362 } |
| 2347 error::Error error = DoGetFragDataIndexEXT(program, name_str.c_str(), index); | 2363 error::Error error = DoGetFragDataIndexEXT(program, name_str.c_str(), index); |
| 2348 if (error != error::kNoError) { | 2364 if (error != error::kNoError) { |
| 2349 return error; | 2365 return error; |
| 2350 } | 2366 } |
| 2351 return error::kNoError; | 2367 return error::kNoError; |
| 2352 } | 2368 } |
| 2353 | 2369 |
| 2354 } // namespace gles2 | 2370 } // namespace gles2 |
| 2355 } // namespace gpu | 2371 } // namespace gpu |
| OLD | NEW |