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

Side by Side Diff: gpu/command_buffer/client/gles2_implementation_impl_autogen.h

Issue 885443002: Roll Chrome into Mojo. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Rebase to ToT mojo Created 5 years, 10 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 // This file is auto-generated from 5 // This file is auto-generated from
6 // gpu/command_buffer/build_gles2_cmd_buffer.py 6 // gpu/command_buffer/build_gles2_cmd_buffer.py
7 // It's formatted by clang-format using chromium coding style: 7 // It's formatted by clang-format using chromium coding style:
8 // clang-format -i -style=chromium filename 8 // clang-format -i -style=chromium filename
9 // DO NOT EDIT! 9 // DO NOT EDIT!
10 10
(...skipping 626 matching lines...) Expand 10 before | Expand all | Expand 10 after
637 << shader << ")"); 637 << shader << ")");
638 helper_->DetachShader(program, shader); 638 helper_->DetachShader(program, shader);
639 CheckGLError(); 639 CheckGLError();
640 } 640 }
641 641
642 GLsync GLES2Implementation::FenceSync(GLenum condition, GLbitfield flags) { 642 GLsync GLES2Implementation::FenceSync(GLenum condition, GLbitfield flags) {
643 GPU_CLIENT_SINGLE_THREAD_CHECK(); 643 GPU_CLIENT_SINGLE_THREAD_CHECK();
644 GPU_CLIENT_LOG("[" << GetLogPrefix() << "] glFenceSync(" 644 GPU_CLIENT_LOG("[" << GetLogPrefix() << "] glFenceSync("
645 << GLES2Util::GetStringSyncCondition(condition) << ", " 645 << GLES2Util::GetStringSyncCondition(condition) << ", "
646 << flags << ")"); 646 << flags << ")");
647 if (condition != 0x9117) { 647 if (condition != GL_SYNC_GPU_COMMANDS_COMPLETE) {
648 SetGLError(GL_INVALID_ENUM, "glFenceSync", "condition GL_INVALID_ENUM"); 648 SetGLError(GL_INVALID_ENUM, "glFenceSync", "condition GL_INVALID_ENUM");
649 return 0; 649 return 0;
650 } 650 }
651 if (flags != 0) { 651 if (flags != 0) {
652 SetGLError(GL_INVALID_VALUE, "glFenceSync", "flags GL_INVALID_VALUE"); 652 SetGLError(GL_INVALID_VALUE, "glFenceSync", "flags GL_INVALID_VALUE");
653 return 0; 653 return 0;
654 } 654 }
655 GLuint client_id; 655 GLuint client_id;
656 GetIdHandler(id_namespaces::kSyncs)->MakeIds(this, 0, 1, &client_id); 656 GetIdHandler(id_namespaces::kSyncs)->MakeIds(this, 0, 1, &client_id);
657 helper_->FenceSync(client_id); 657 helper_->FenceSync(client_id);
(...skipping 2668 matching lines...) Expand 10 before | Expand all | Expand 10 after
3326 3326
3327 void GLES2Implementation::BlendBarrierKHR() { 3327 void GLES2Implementation::BlendBarrierKHR() {
3328 GPU_CLIENT_SINGLE_THREAD_CHECK(); 3328 GPU_CLIENT_SINGLE_THREAD_CHECK();
3329 GPU_CLIENT_LOG("[" << GetLogPrefix() << "] glBlendBarrierKHR(" 3329 GPU_CLIENT_LOG("[" << GetLogPrefix() << "] glBlendBarrierKHR("
3330 << ")"); 3330 << ")");
3331 helper_->BlendBarrierKHR(); 3331 helper_->BlendBarrierKHR();
3332 CheckGLError(); 3332 CheckGLError();
3333 } 3333 }
3334 3334
3335 #endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_IMPLEMENTATION_IMPL_AUTOGEN_H_ 3335 #endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_IMPLEMENTATION_IMPL_AUTOGEN_H_
OLDNEW
« no previous file with comments | « gpu/command_buffer/client/gles2_implementation_autogen.h ('k') | gpu/command_buffer/client/gles2_implementation_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698