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

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

Issue 2814843002: gpu: GPU service scheduler. (Closed)
Patch Set: rebase Created 3 years, 7 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) 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 16011 matching lines...) Expand 10 before | Expand all | Expand 10 after
16022 error::Error GLES2DecoderImpl::HandleInsertFenceSyncCHROMIUM( 16022 error::Error GLES2DecoderImpl::HandleInsertFenceSyncCHROMIUM(
16023 uint32_t immediate_data_size, 16023 uint32_t immediate_data_size,
16024 const volatile void* cmd_data) { 16024 const volatile void* cmd_data) {
16025 const volatile gles2::cmds::InsertFenceSyncCHROMIUM& c = 16025 const volatile gles2::cmds::InsertFenceSyncCHROMIUM& c =
16026 *static_cast<const volatile gles2::cmds::InsertFenceSyncCHROMIUM*>( 16026 *static_cast<const volatile gles2::cmds::InsertFenceSyncCHROMIUM*>(
16027 cmd_data); 16027 cmd_data);
16028 16028
16029 const uint64_t release_count = c.release_count(); 16029 const uint64_t release_count = c.release_count();
16030 if (!fence_sync_release_callback_.is_null()) 16030 if (!fence_sync_release_callback_.is_null())
16031 fence_sync_release_callback_.Run(release_count); 16031 fence_sync_release_callback_.Run(release_count);
16032 ExitCommandProcessingEarly();
vmiura 2017/05/04 21:27:37 Is there a particular reason to exit early after a
sunnyps 2017/05/10 23:15:15 Releasing can unblock a higher priority context so
16032 return error::kNoError; 16033 return error::kNoError;
16033 } 16034 }
16034 16035
16035 error::Error GLES2DecoderImpl::HandleWaitSyncTokenCHROMIUM( 16036 error::Error GLES2DecoderImpl::HandleWaitSyncTokenCHROMIUM(
16036 uint32_t immediate_data_size, 16037 uint32_t immediate_data_size,
16037 const volatile void* cmd_data) { 16038 const volatile void* cmd_data) {
16038 const volatile gles2::cmds::WaitSyncTokenCHROMIUM& c = 16039 const volatile gles2::cmds::WaitSyncTokenCHROMIUM& c =
16039 *static_cast<const volatile gles2::cmds::WaitSyncTokenCHROMIUM*>( 16040 *static_cast<const volatile gles2::cmds::WaitSyncTokenCHROMIUM*>(
16040 cmd_data); 16041 cmd_data);
16041 16042
(...skipping 3594 matching lines...) Expand 10 before | Expand all | Expand 10 after
19636 } 19637 }
19637 19638
19638 // Include the auto-generated part of this file. We split this because it means 19639 // Include the auto-generated part of this file. We split this because it means
19639 // we can easily edit the non-auto generated parts right here in this file 19640 // we can easily edit the non-auto generated parts right here in this file
19640 // instead of having to edit some template or the code generator. 19641 // instead of having to edit some template or the code generator.
19641 #include "base/macros.h" 19642 #include "base/macros.h"
19642 #include "gpu/command_buffer/service/gles2_cmd_decoder_autogen.h" 19643 #include "gpu/command_buffer/service/gles2_cmd_decoder_autogen.h"
19643 19644
19644 } // namespace gles2 19645 } // namespace gles2
19645 } // namespace gpu 19646 } // namespace gpu
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698