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 9274 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
9285 return error::kLostContext; | 9285 return error::kLostContext; |
9286 } | 9286 } |
9287 | 9287 |
9288 error::Error GLES2DecoderImpl::HandleInsertSyncPointCHROMIUM( | 9288 error::Error GLES2DecoderImpl::HandleInsertSyncPointCHROMIUM( |
9289 uint32 immediate_data_size, const cmds::InsertSyncPointCHROMIUM& c) { | 9289 uint32 immediate_data_size, const cmds::InsertSyncPointCHROMIUM& c) { |
9290 return error::kUnknownCommand; | 9290 return error::kUnknownCommand; |
9291 } | 9291 } |
9292 | 9292 |
9293 error::Error GLES2DecoderImpl::HandleWaitSyncPointCHROMIUM( | 9293 error::Error GLES2DecoderImpl::HandleWaitSyncPointCHROMIUM( |
9294 uint32 immediate_data_size, const cmds::WaitSyncPointCHROMIUM& c) { | 9294 uint32 immediate_data_size, const cmds::WaitSyncPointCHROMIUM& c) { |
| 9295 group_->mailbox_manager()->PullTextureUpdates(); |
9295 if (wait_sync_point_callback_.is_null()) | 9296 if (wait_sync_point_callback_.is_null()) |
9296 return error::kNoError; | 9297 return error::kNoError; |
9297 | 9298 |
9298 return wait_sync_point_callback_.Run(c.sync_point) ? | 9299 return wait_sync_point_callback_.Run(c.sync_point) ? |
9299 error::kNoError : error::kDeferCommandUntilLater; | 9300 error::kNoError : error::kDeferCommandUntilLater; |
9300 } | 9301 } |
9301 | 9302 |
9302 error::Error GLES2DecoderImpl::HandleDiscardBackbufferCHROMIUM( | 9303 error::Error GLES2DecoderImpl::HandleDiscardBackbufferCHROMIUM( |
9303 uint32 immediate_data_size, const cmds::DiscardBackbufferCHROMIUM& c) { | 9304 uint32 immediate_data_size, const cmds::DiscardBackbufferCHROMIUM& c) { |
9304 if (surface_->DeferDraws()) | 9305 if (surface_->DeferDraws()) |
(...skipping 1235 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
10540 DoDidUseTexImageIfNeeded(texture, texture->target()); | 10541 DoDidUseTexImageIfNeeded(texture, texture->target()); |
10541 } | 10542 } |
10542 | 10543 |
10543 // Include the auto-generated part of this file. We split this because it means | 10544 // Include the auto-generated part of this file. We split this because it means |
10544 // we can easily edit the non-auto generated parts right here in this file | 10545 // we can easily edit the non-auto generated parts right here in this file |
10545 // instead of having to edit some template or the code generator. | 10546 // instead of having to edit some template or the code generator. |
10546 #include "gpu/command_buffer/service/gles2_cmd_decoder_autogen.h" | 10547 #include "gpu/command_buffer/service/gles2_cmd_decoder_autogen.h" |
10547 | 10548 |
10548 } // namespace gles2 | 10549 } // namespace gles2 |
10549 } // namespace gpu | 10550 } // namespace gpu |
OLD | NEW |