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

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

Issue 12581004: Move InsertSyncPoint to GLES2Interface (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fixes Created 7 years, 9 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 | Annotate | Revision Log
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 <stdio.h> 7 #include <stdio.h>
8 8
9 #include <algorithm> 9 #include <algorithm>
10 #include <list> 10 #include <list>
(...skipping 9035 matching lines...) Expand 10 before | Expand all | Expand 10 after
9046 } 9046 }
9047 if (!validators_->reset_status.IsValid(other)) { 9047 if (!validators_->reset_status.IsValid(other)) {
9048 SetGLErrorInvalidEnum("glLoseContextCHROMIUM", other, "other"); 9048 SetGLErrorInvalidEnum("glLoseContextCHROMIUM", other, "other");
9049 } 9049 }
9050 group_->LoseContexts(other); 9050 group_->LoseContexts(other);
9051 reset_status_ = current; 9051 reset_status_ = current;
9052 current_decoder_error_ = error::kLostContext; 9052 current_decoder_error_ = error::kLostContext;
9053 return error::kLostContext; 9053 return error::kLostContext;
9054 } 9054 }
9055 9055
9056 error::Error GLES2DecoderImpl::HandleInsertSyncPointCHROMIUM(
9057 uint32 immediate_data_size, const cmds::InsertSyncPointCHROMIUM& c) {
9058 return error::kUnknownCommand;
9059 }
9060
9056 error::Error GLES2DecoderImpl::HandleWaitSyncPointCHROMIUM( 9061 error::Error GLES2DecoderImpl::HandleWaitSyncPointCHROMIUM(
9057 uint32 immediate_data_size, const cmds::WaitSyncPointCHROMIUM& c) { 9062 uint32 immediate_data_size, const cmds::WaitSyncPointCHROMIUM& c) {
9058 if (wait_sync_point_callback_.is_null()) 9063 if (wait_sync_point_callback_.is_null())
9059 return error::kNoError; 9064 return error::kNoError;
9060 9065
9061 return wait_sync_point_callback_.Run(c.sync_point) ? 9066 return wait_sync_point_callback_.Run(c.sync_point) ?
9062 error::kNoError : error::kDeferCommandUntilLater; 9067 error::kNoError : error::kDeferCommandUntilLater;
9063 } 9068 }
9064 9069
9065 bool GLES2DecoderImpl::GenQueriesEXTHelper( 9070 bool GLES2DecoderImpl::GenQueriesEXTHelper(
(...skipping 1088 matching lines...) Expand 10 before | Expand all | Expand 10 after
10154 return error::kNoError; 10159 return error::kNoError;
10155 } 10160 }
10156 10161
10157 // Include the auto-generated part of this file. We split this because it means 10162 // Include the auto-generated part of this file. We split this because it means
10158 // we can easily edit the non-auto generated parts right here in this file 10163 // we can easily edit the non-auto generated parts right here in this file
10159 // instead of having to edit some template or the code generator. 10164 // instead of having to edit some template or the code generator.
10160 #include "gpu/command_buffer/service/gles2_cmd_decoder_autogen.h" 10165 #include "gpu/command_buffer/service/gles2_cmd_decoder_autogen.h"
10161 10166
10162 } // namespace gles2 10167 } // namespace gles2
10163 } // namespace gpu 10168 } // namespace gpu
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698