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

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

Issue 1602313002: Removed client side support for old sync points. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Removed DrawingBufferTest reference Created 4 years, 11 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
« no previous file with comments | « gpu/command_buffer/common/gles2_cmd_ids_autogen.h ('k') | mojo/gpu/mojo_gles2_impl_autogen.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 <limits.h> 7 #include <limits.h>
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 #include <stdio.h> 10 #include <stdio.h>
(...skipping 12566 matching lines...) Expand 10 before | Expand all | Expand 10 after
12577 default: 12577 default:
12578 NOTREACHED(); 12578 NOTREACHED();
12579 return false; 12579 return false;
12580 } 12580 }
12581 reset_by_robustness_extension_ = true; 12581 reset_by_robustness_extension_ = true;
12582 return true; 12582 return true;
12583 } 12583 }
12584 return false; 12584 return false;
12585 } 12585 }
12586 12586
12587 error::Error GLES2DecoderImpl::HandleInsertSyncPointCHROMIUM(
12588 uint32_t immediate_data_size,
12589 const void* cmd_data) {
12590 return error::kUnknownCommand;
12591 }
12592
12593 error::Error GLES2DecoderImpl::HandleWaitSyncPointCHROMIUM(
12594 uint32_t immediate_data_size,
12595 const void* cmd_data) {
12596 const gles2::cmds::WaitSyncPointCHROMIUM& c =
12597 *static_cast<const gles2::cmds::WaitSyncPointCHROMIUM*>(cmd_data);
12598 uint32_t sync_point = c.sync_point;
12599 if (wait_sync_point_callback_.is_null())
12600 return error::kNoError;
12601
12602 return wait_sync_point_callback_.Run(sync_point) ?
12603 error::kNoError : error::kDeferCommandUntilLater;
12604 }
12605
12606 error::Error GLES2DecoderImpl::HandleInsertFenceSyncCHROMIUM( 12587 error::Error GLES2DecoderImpl::HandleInsertFenceSyncCHROMIUM(
12607 uint32_t immediate_data_size, 12588 uint32_t immediate_data_size,
12608 const void* cmd_data) { 12589 const void* cmd_data) {
12609 const gles2::cmds::InsertFenceSyncCHROMIUM& c = 12590 const gles2::cmds::InsertFenceSyncCHROMIUM& c =
12610 *static_cast<const gles2::cmds::InsertFenceSyncCHROMIUM*>(cmd_data); 12591 *static_cast<const gles2::cmds::InsertFenceSyncCHROMIUM*>(cmd_data);
12611 12592
12612 const uint64_t release_count = c.release_count(); 12593 const uint64_t release_count = c.release_count();
12613 if (!fence_sync_release_callback_.is_null()) 12594 if (!fence_sync_release_callback_.is_null())
12614 fence_sync_release_callback_.Run(release_count); 12595 fence_sync_release_callback_.Run(release_count);
12615 return error::kNoError; 12596 return error::kNoError;
(...skipping 3016 matching lines...) Expand 10 before | Expand all | Expand 10 after
15632 } 15613 }
15633 15614
15634 // Include the auto-generated part of this file. We split this because it means 15615 // Include the auto-generated part of this file. We split this because it means
15635 // we can easily edit the non-auto generated parts right here in this file 15616 // we can easily edit the non-auto generated parts right here in this file
15636 // instead of having to edit some template or the code generator. 15617 // instead of having to edit some template or the code generator.
15637 #include "base/macros.h" 15618 #include "base/macros.h"
15638 #include "gpu/command_buffer/service/gles2_cmd_decoder_autogen.h" 15619 #include "gpu/command_buffer/service/gles2_cmd_decoder_autogen.h"
15639 15620
15640 } // namespace gles2 15621 } // namespace gles2
15641 } // namespace gpu 15622 } // namespace gpu
OLDNEW
« no previous file with comments | « gpu/command_buffer/common/gles2_cmd_ids_autogen.h ('k') | mojo/gpu/mojo_gles2_impl_autogen.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698