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

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

Issue 298753004: Fix an early return and the error status in glLoseContextCHROMIUM impl (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@cmd-buffer-missing-early-returns
Patch Set: Created 6 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 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 2046 matching lines...) Expand 10 before | Expand all | Expand 10 after
2057 SetGLError(GL_INVALID_VALUE, "glDiscardFramebufferEXT", "count < 0"); 2057 SetGLError(GL_INVALID_VALUE, "glDiscardFramebufferEXT", "count < 0");
2058 return; 2058 return;
2059 } 2059 }
2060 helper_->DiscardFramebufferEXTImmediate(target, count, attachments); 2060 helper_->DiscardFramebufferEXTImmediate(target, count, attachments);
2061 CheckGLError(); 2061 CheckGLError();
2062 } 2062 }
2063 2063
2064 void GLES2Implementation::LoseContextCHROMIUM(GLenum current, GLenum other) { 2064 void GLES2Implementation::LoseContextCHROMIUM(GLenum current, GLenum other) {
2065 GPU_CLIENT_SINGLE_THREAD_CHECK(); 2065 GPU_CLIENT_SINGLE_THREAD_CHECK();
2066 GPU_CLIENT_LOG("[" << GetLogPrefix() << "] glLoseContextCHROMIUM(" 2066 GPU_CLIENT_LOG("[" << GetLogPrefix() << "] glLoseContextCHROMIUM("
2067 << GLES2Util::GetStringEnum(current) << ", " 2067 << GLES2Util::GetStringResetStatus(current) << ", "
2068 << GLES2Util::GetStringEnum(other) << ")"); 2068 << GLES2Util::GetStringResetStatus(other) << ")");
2069 helper_->LoseContextCHROMIUM(current, other); 2069 helper_->LoseContextCHROMIUM(current, other);
2070 CheckGLError(); 2070 CheckGLError();
2071 } 2071 }
2072 2072
2073 void GLES2Implementation::WaitSyncPointCHROMIUM(GLuint sync_point) { 2073 void GLES2Implementation::WaitSyncPointCHROMIUM(GLuint sync_point) {
2074 GPU_CLIENT_SINGLE_THREAD_CHECK(); 2074 GPU_CLIENT_SINGLE_THREAD_CHECK();
2075 GPU_CLIENT_LOG("[" << GetLogPrefix() << "] glWaitSyncPointCHROMIUM(" 2075 GPU_CLIENT_LOG("[" << GetLogPrefix() << "] glWaitSyncPointCHROMIUM("
2076 << sync_point << ")"); 2076 << sync_point << ")");
2077 helper_->WaitSyncPointCHROMIUM(sync_point); 2077 helper_->WaitSyncPointCHROMIUM(sync_point);
2078 CheckGLError(); 2078 CheckGLError();
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
2130 bounds_width, 2130 bounds_width,
2131 bounds_height, 2131 bounds_height,
2132 uv_x, 2132 uv_x,
2133 uv_y, 2133 uv_y,
2134 uv_width, 2134 uv_width,
2135 uv_height); 2135 uv_height);
2136 CheckGLError(); 2136 CheckGLError();
2137 } 2137 }
2138 2138
2139 #endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_IMPLEMENTATION_IMPL_AUTOGEN_H_ 2139 #endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_IMPLEMENTATION_IMPL_AUTOGEN_H_
OLDNEW
« no previous file with comments | « gpu/command_buffer/build_gles2_cmd_buffer.py ('k') | gpu/command_buffer/client/gles2_implementation_unittest_autogen.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698