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

Unified Diff: gpu/command_buffer/service/gles2_cmd_decoder.cc

Issue 859043005: Add Sync related APIs to GPU command buffer: Part I (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Make win bots happy Created 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « gpu/command_buffer/service/context_group.h ('k') | gpu/command_buffer/service/gles2_cmd_decoder_autogen.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gpu/command_buffer/service/gles2_cmd_decoder.cc
diff --git a/gpu/command_buffer/service/gles2_cmd_decoder.cc b/gpu/command_buffer/service/gles2_cmd_decoder.cc
index e86a776da62499e037aab99ddb9f1df3042ef4ef..5fb0fa8fc097f03deb0987b88f4020d69e2e8904 100644
--- a/gpu/command_buffer/service/gles2_cmd_decoder.cc
+++ b/gpu/command_buffer/service/gles2_cmd_decoder.cc
@@ -1278,12 +1278,6 @@ class GLES2DecoderImpl : public GLES2Decoder,
void GetVertexAttribHelper(
const VertexAttrib* attrib, GLenum pname, GLint* param);
- // Wrapper for glCreateProgram
- bool CreateProgramHelper(GLuint client_id);
-
- // Wrapper for glCreateShader
- bool CreateShaderHelper(GLenum type, GLuint client_id);
-
// Wrapper for glActiveTexture
void DoActiveTexture(GLenum texture_unit);
@@ -4049,28 +4043,6 @@ void GLES2DecoderImpl::RemoveBuffer(GLuint client_id) {
buffer_manager()->RemoveBuffer(client_id);
}
-bool GLES2DecoderImpl::CreateProgramHelper(GLuint client_id) {
- if (GetProgram(client_id)) {
- return false;
- }
- GLuint service_id = glCreateProgram();
- if (service_id != 0) {
- CreateProgram(client_id, service_id);
- }
- return true;
-}
-
-bool GLES2DecoderImpl::CreateShaderHelper(GLenum type, GLuint client_id) {
- if (GetShader(client_id)) {
- return false;
- }
- GLuint service_id = glCreateShader(type);
- if (service_id != 0) {
- CreateShader(client_id, service_id, type);
- }
- return true;
-}
-
void GLES2DecoderImpl::DoFinish() {
glFinish();
ProcessPendingReadPixels();
« no previous file with comments | « gpu/command_buffer/service/context_group.h ('k') | gpu/command_buffer/service/gles2_cmd_decoder_autogen.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698