| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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.h" | 5 #include "gpu/command_buffer/service/gles2_cmd_decoder.h" |
| 6 | 6 |
| 7 #include <stdio.h> | 7 #include <stdio.h> |
| 8 | 8 |
| 9 #include <algorithm> | 9 #include <algorithm> |
| 10 #include <list> | 10 #include <list> |
| (...skipping 9743 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 9754 uint32 immediate_data_size, | 9754 uint32 immediate_data_size, |
| 9755 const void* cmd_data) { | 9755 const void* cmd_data) { |
| 9756 return error::kUnknownCommand; | 9756 return error::kUnknownCommand; |
| 9757 } | 9757 } |
| 9758 | 9758 |
| 9759 error::Error GLES2DecoderImpl::HandleWaitSyncPointCHROMIUM( | 9759 error::Error GLES2DecoderImpl::HandleWaitSyncPointCHROMIUM( |
| 9760 uint32 immediate_data_size, | 9760 uint32 immediate_data_size, |
| 9761 const void* cmd_data) { | 9761 const void* cmd_data) { |
| 9762 const gles2::cmds::WaitSyncPointCHROMIUM& c = | 9762 const gles2::cmds::WaitSyncPointCHROMIUM& c = |
| 9763 *static_cast<const gles2::cmds::WaitSyncPointCHROMIUM*>(cmd_data); | 9763 *static_cast<const gles2::cmds::WaitSyncPointCHROMIUM*>(cmd_data); |
| 9764 group_->mailbox_manager()->PullTextureUpdates(); | 9764 uint32 sync_point = c.sync_point; |
| 9765 if (wait_sync_point_callback_.is_null()) | 9765 if (wait_sync_point_callback_.is_null()) |
| 9766 return error::kNoError; | 9766 return error::kNoError; |
| 9767 | 9767 |
| 9768 return wait_sync_point_callback_.Run(c.sync_point) ? | 9768 return wait_sync_point_callback_.Run(sync_point) ? |
| 9769 error::kNoError : error::kDeferCommandUntilLater; | 9769 error::kNoError : error::kDeferCommandUntilLater; |
| 9770 } | 9770 } |
| 9771 | 9771 |
| 9772 error::Error GLES2DecoderImpl::HandleDiscardBackbufferCHROMIUM( | 9772 error::Error GLES2DecoderImpl::HandleDiscardBackbufferCHROMIUM( |
| 9773 uint32 immediate_data_size, | 9773 uint32 immediate_data_size, |
| 9774 const void* cmd_data) { | 9774 const void* cmd_data) { |
| 9775 if (surface_->DeferDraws()) | 9775 if (surface_->DeferDraws()) |
| 9776 return error::kDeferCommandUntilLater; | 9776 return error::kDeferCommandUntilLater; |
| 9777 if (!surface_->SetBackbufferAllocation(false)) | 9777 if (!surface_->SetBackbufferAllocation(false)) |
| 9778 return error::kLostContext; | 9778 return error::kLostContext; |
| (...skipping 1464 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 11243 } | 11243 } |
| 11244 } | 11244 } |
| 11245 | 11245 |
| 11246 // Include the auto-generated part of this file. We split this because it means | 11246 // Include the auto-generated part of this file. We split this because it means |
| 11247 // we can easily edit the non-auto generated parts right here in this file | 11247 // we can easily edit the non-auto generated parts right here in this file |
| 11248 // instead of having to edit some template or the code generator. | 11248 // instead of having to edit some template or the code generator. |
| 11249 #include "gpu/command_buffer/service/gles2_cmd_decoder_autogen.h" | 11249 #include "gpu/command_buffer/service/gles2_cmd_decoder_autogen.h" |
| 11250 | 11250 |
| 11251 } // namespace gles2 | 11251 } // namespace gles2 |
| 11252 } // namespace gpu | 11252 } // namespace gpu |
| OLD | NEW |