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

Side by Side Diff: gpu/command_buffer/service/gles2_cmd_decoder_passthrough_handlers.cc

Issue 2673473002: Rename SwapBuffersWithDamage to SwapBuffersWithBounds (Closed)
Patch Set: fix windows compile warning Created 3 years, 10 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 (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 1496 matching lines...) Expand 10 before | Expand all | Expand 10 after
1507 if (error != error::kNoError) { 1507 if (error != error::kNoError) {
1508 return error; 1508 return error;
1509 } 1509 }
1510 1510
1511 Bucket* bucket = CreateBucket(c.bucket_id); 1511 Bucket* bucket = CreateBucket(c.bucket_id);
1512 bucket->SetFromString(source.c_str()); 1512 bucket->SetFromString(source.c_str());
1513 1513
1514 return error::kNoError; 1514 return error::kNoError;
1515 } 1515 }
1516 1516
1517 error::Error GLES2DecoderPassthroughImpl::HandleSwapBuffersWithDamageCHROMIUM(
1518 uint32_t immediate_data_size,
1519 const volatile void* cmd_data) {
1520 const volatile gles2::cmds::SwapBuffersWithDamageCHROMIUM& c =
1521 *static_cast<const volatile gles2::cmds::SwapBuffersWithDamageCHROMIUM*>(
1522 cmd_data);
1523 GLint x = static_cast<GLint>(c.x);
1524 GLint y = static_cast<GLint>(c.y);
1525 GLint width = static_cast<GLint>(c.width);
1526 GLint height = static_cast<GLint>(c.height);
1527 error::Error error = DoSwapBuffersWithDamageCHROMIUM(x, y, width, height);
1528 if (error != error::kNoError) {
1529 return error;
1530 }
1531 return error::kNoError;
1532 }
1533
1534 error::Error GLES2DecoderPassthroughImpl::HandlePostSubBufferCHROMIUM( 1517 error::Error GLES2DecoderPassthroughImpl::HandlePostSubBufferCHROMIUM(
1535 uint32_t immediate_data_size, 1518 uint32_t immediate_data_size,
1536 const volatile void* cmd_data) { 1519 const volatile void* cmd_data) {
1537 const volatile gles2::cmds::PostSubBufferCHROMIUM& c = 1520 const volatile gles2::cmds::PostSubBufferCHROMIUM& c =
1538 *static_cast<const volatile gles2::cmds::PostSubBufferCHROMIUM*>( 1521 *static_cast<const volatile gles2::cmds::PostSubBufferCHROMIUM*>(
1539 cmd_data); 1522 cmd_data);
1540 GLint x = static_cast<GLint>(c.x); 1523 GLint x = static_cast<GLint>(c.x);
1541 GLint y = static_cast<GLint>(c.y); 1524 GLint y = static_cast<GLint>(c.y);
1542 GLint width = static_cast<GLint>(c.width); 1525 GLint width = static_cast<GLint>(c.width);
1543 GLint height = static_cast<GLint>(c.height); 1526 GLint height = static_cast<GLint>(c.height);
(...skipping 1077 matching lines...) Expand 10 before | Expand all | Expand 10 after
2621 // TODO(geofflang): Handle PIXEL_UNPACK_BUFFER case. 2604 // TODO(geofflang): Handle PIXEL_UNPACK_BUFFER case.
2622 const void* data = GetSharedMemoryAs<const void*>( 2605 const void* data = GetSharedMemoryAs<const void*>(
2623 c.data_shm_id, c.data_shm_offset, image_size); 2606 c.data_shm_id, c.data_shm_offset, image_size);
2624 return DoCompressedTexSubImage3D( 2607 return DoCompressedTexSubImage3D(
2625 target, level, xoffset, yoffset, zoffset, width, height, depth, 2608 target, level, xoffset, yoffset, zoffset, width, height, depth,
2626 format, image_size, data); 2609 format, image_size, data);
2627 } 2610 }
2628 2611
2629 } // namespace gles2 2612 } // namespace gles2
2630 } // namespace gpu 2613 } // namespace gpu
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698