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

Side by Side Diff: gpu/command_buffer/client/gles2_implementation.cc

Issue 1385883002: Leave CreateStreamTexture route id out of the GL interface. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebasing TOT! Created 5 years, 1 month 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 // A class to emulate GLES2 over command buffers. 5 // A class to emulate GLES2 over command buffers.
6 6
7 #include "gpu/command_buffer/client/gles2_implementation.h" 7 #include "gpu/command_buffer/client/gles2_implementation.h"
8 8
9 #include <GLES2/gl2.h> 9 #include <GLES2/gl2.h>
10 #include <GLES2/gl2ext.h> 10 #include <GLES2/gl2ext.h>
(...skipping 4846 matching lines...) Expand 10 before | Expand all | Expand 10 after
4857 return; 4857 return;
4858 } 4858 }
4859 if (static_cast<size_t>(bufsize) < result.size()) { 4859 if (static_cast<size_t>(bufsize) < result.size()) {
4860 SetGLError(GL_INVALID_OPERATION, "glGetTransformFeedbackVaryingsCHROMIUM", 4860 SetGLError(GL_INVALID_OPERATION, "glGetTransformFeedbackVaryingsCHROMIUM",
4861 "bufsize is too small for result."); 4861 "bufsize is too small for result.");
4862 return; 4862 return;
4863 } 4863 }
4864 memcpy(info, &result[0], result.size()); 4864 memcpy(info, &result[0], result.size());
4865 } 4865 }
4866 4866
4867 GLuint GLES2Implementation::CreateStreamTextureCHROMIUM(GLuint texture) {
4868 GPU_CLIENT_SINGLE_THREAD_CHECK();
4869 GPU_CLIENT_LOG("[" << GetLogPrefix() << "] CreateStreamTextureCHROMIUM("
4870 << texture << ")");
4871 TRACE_EVENT0("gpu", "GLES2::CreateStreamTextureCHROMIUM");
4872 helper_->CommandBufferHelper::Flush();
4873 return gpu_control_->CreateStreamTexture(texture);
4874 }
4875
4876 void GLES2Implementation::PostSubBufferCHROMIUM( 4867 void GLES2Implementation::PostSubBufferCHROMIUM(
4877 GLint x, GLint y, GLint width, GLint height) { 4868 GLint x, GLint y, GLint width, GLint height) {
4878 GPU_CLIENT_SINGLE_THREAD_CHECK(); 4869 GPU_CLIENT_SINGLE_THREAD_CHECK();
4879 GPU_CLIENT_LOG("[" << GetLogPrefix() << "] PostSubBufferCHROMIUM(" 4870 GPU_CLIENT_LOG("[" << GetLogPrefix() << "] PostSubBufferCHROMIUM("
4880 << x << ", " << y << ", " << width << ", " << height << ")"); 4871 << x << ", " << y << ", " << width << ", " << height << ")");
4881 TRACE_EVENT2("gpu", "GLES2::PostSubBufferCHROMIUM", 4872 TRACE_EVENT2("gpu", "GLES2::PostSubBufferCHROMIUM",
4882 "width", width, "height", height); 4873 "width", width, "height", height);
4883 4874
4884 // Same flow control as GLES2Implementation::SwapBuffers (see comments there). 4875 // Same flow control as GLES2Implementation::SwapBuffers (see comments there).
4885 swap_buffers_tokens_.push(helper_->InsertToken()); 4876 swap_buffers_tokens_.push(helper_->InsertToken());
(...skipping 1501 matching lines...) Expand 10 before | Expand all | Expand 10 after
6387 CheckGLError(); 6378 CheckGLError();
6388 } 6379 }
6389 6380
6390 // Include the auto-generated part of this file. We split this because it means 6381 // Include the auto-generated part of this file. We split this because it means
6391 // we can easily edit the non-auto generated parts right here in this file 6382 // we can easily edit the non-auto generated parts right here in this file
6392 // instead of having to edit some template or the code generator. 6383 // instead of having to edit some template or the code generator.
6393 #include "gpu/command_buffer/client/gles2_implementation_impl_autogen.h" 6384 #include "gpu/command_buffer/client/gles2_implementation_impl_autogen.h"
6394 6385
6395 } // namespace gles2 6386 } // namespace gles2
6396 } // namespace gpu 6387 } // namespace gpu
OLDNEW
« no previous file with comments | « gpu/command_buffer/client/gles2_c_lib_autogen.h ('k') | gpu/command_buffer/client/gles2_implementation_autogen.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698