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 1441 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1452 if (error != error::kNoError) { | 1452 if (error != error::kNoError) { |
1453 return error; | 1453 return error; |
1454 } | 1454 } |
1455 | 1455 |
1456 Bucket* bucket = CreateBucket(c.bucket_id); | 1456 Bucket* bucket = CreateBucket(c.bucket_id); |
1457 bucket->SetFromString(source.c_str()); | 1457 bucket->SetFromString(source.c_str()); |
1458 | 1458 |
1459 return error::kNoError; | 1459 return error::kNoError; |
1460 } | 1460 } |
1461 | 1461 |
| 1462 error::Error GLES2DecoderPassthroughImpl::HandleSwapBuffersWithDamageCHROMIUM( |
| 1463 uint32_t immediate_data_size, |
| 1464 const volatile void* cmd_data) { |
| 1465 const volatile gles2::cmds::SwapBuffersWithDamageCHROMIUM& c = |
| 1466 *static_cast<const volatile gles2::cmds::SwapBuffersWithDamageCHROMIUM*>( |
| 1467 cmd_data); |
| 1468 GLint x = static_cast<GLint>(c.x); |
| 1469 GLint y = static_cast<GLint>(c.y); |
| 1470 GLint width = static_cast<GLint>(c.width); |
| 1471 GLint height = static_cast<GLint>(c.height); |
| 1472 error::Error error = DoSwapBuffersWithDamageCHROMIUM(x, y, width, height); |
| 1473 if (error != error::kNoError) { |
| 1474 return error; |
| 1475 } |
| 1476 return error::kNoError; |
| 1477 } |
| 1478 |
1462 error::Error GLES2DecoderPassthroughImpl::HandlePostSubBufferCHROMIUM( | 1479 error::Error GLES2DecoderPassthroughImpl::HandlePostSubBufferCHROMIUM( |
1463 uint32_t immediate_data_size, | 1480 uint32_t immediate_data_size, |
1464 const volatile void* cmd_data) { | 1481 const volatile void* cmd_data) { |
1465 const volatile gles2::cmds::PostSubBufferCHROMIUM& c = | 1482 const volatile gles2::cmds::PostSubBufferCHROMIUM& c = |
1466 *static_cast<const volatile gles2::cmds::PostSubBufferCHROMIUM*>( | 1483 *static_cast<const volatile gles2::cmds::PostSubBufferCHROMIUM*>( |
1467 cmd_data); | 1484 cmd_data); |
1468 GLint x = static_cast<GLint>(c.x); | 1485 GLint x = static_cast<GLint>(c.x); |
1469 GLint y = static_cast<GLint>(c.y); | 1486 GLint y = static_cast<GLint>(c.y); |
1470 GLint width = static_cast<GLint>(c.width); | 1487 GLint width = static_cast<GLint>(c.width); |
1471 GLint height = static_cast<GLint>(c.height); | 1488 GLint height = static_cast<GLint>(c.height); |
(...skipping 903 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2375 } | 2392 } |
2376 error::Error error = DoGetFragDataIndexEXT(program, name_str.c_str(), index); | 2393 error::Error error = DoGetFragDataIndexEXT(program, name_str.c_str(), index); |
2377 if (error != error::kNoError) { | 2394 if (error != error::kNoError) { |
2378 return error; | 2395 return error; |
2379 } | 2396 } |
2380 return error::kNoError; | 2397 return error::kNoError; |
2381 } | 2398 } |
2382 | 2399 |
2383 } // namespace gles2 | 2400 } // namespace gles2 |
2384 } // namespace gpu | 2401 } // namespace gpu |
OLD | NEW |