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

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

Issue 1129943006: Implement StreamTexture::BindTexImage. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 5 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 (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 4800 matching lines...) Expand 10 before | Expand all | Expand 10 after
4811 4811
4812 GLuint GLES2Implementation::CreateStreamTextureCHROMIUM(GLuint texture) { 4812 GLuint GLES2Implementation::CreateStreamTextureCHROMIUM(GLuint texture) {
4813 GPU_CLIENT_SINGLE_THREAD_CHECK(); 4813 GPU_CLIENT_SINGLE_THREAD_CHECK();
4814 GPU_CLIENT_LOG("[" << GetLogPrefix() << "] CreateStreamTextureCHROMIUM(" 4814 GPU_CLIENT_LOG("[" << GetLogPrefix() << "] CreateStreamTextureCHROMIUM("
4815 << texture << ")"); 4815 << texture << ")");
4816 TRACE_EVENT0("gpu", "GLES2::CreateStreamTextureCHROMIUM"); 4816 TRACE_EVENT0("gpu", "GLES2::CreateStreamTextureCHROMIUM");
4817 helper_->CommandBufferHelper::Flush(); 4817 helper_->CommandBufferHelper::Flush();
4818 return gpu_control_->CreateStreamTexture(texture); 4818 return gpu_control_->CreateStreamTexture(texture);
4819 } 4819 }
4820 4820
4821 GLuint GLES2Implementation::CreateStreamTextureImageCHROMIUM(GLint image_id) {
4822 GPU_CLIENT_SINGLE_THREAD_CHECK();
4823 GPU_CLIENT_LOG("[" << GetLogPrefix() << "] CreateStreamTextureImageCHROMIUM("
4824 << image_id << ")");
4825 TRACE_EVENT0("gpu", "GLES2::CreateStreamTextureImageCHROMIUM");
4826 helper_->CommandBufferHelper::Flush();
4827 return gpu_control_->CreateStreamTextureImage(image_id);
4828 }
4829
4821 void GLES2Implementation::PostSubBufferCHROMIUM( 4830 void GLES2Implementation::PostSubBufferCHROMIUM(
4822 GLint x, GLint y, GLint width, GLint height) { 4831 GLint x, GLint y, GLint width, GLint height) {
4823 GPU_CLIENT_SINGLE_THREAD_CHECK(); 4832 GPU_CLIENT_SINGLE_THREAD_CHECK();
4824 GPU_CLIENT_LOG("[" << GetLogPrefix() << "] PostSubBufferCHROMIUM(" 4833 GPU_CLIENT_LOG("[" << GetLogPrefix() << "] PostSubBufferCHROMIUM("
4825 << x << ", " << y << ", " << width << ", " << height << ")"); 4834 << x << ", " << y << ", " << width << ", " << height << ")");
4826 TRACE_EVENT2("gpu", "GLES2::PostSubBufferCHROMIUM", 4835 TRACE_EVENT2("gpu", "GLES2::PostSubBufferCHROMIUM",
4827 "width", width, "height", height); 4836 "width", width, "height", height);
4828 4837
4829 // Same flow control as GLES2Implementation::SwapBuffers (see comments there). 4838 // Same flow control as GLES2Implementation::SwapBuffers (see comments there).
4830 swap_buffers_tokens_.push(helper_->InsertToken()); 4839 swap_buffers_tokens_.push(helper_->InsertToken());
(...skipping 1193 matching lines...) Expand 10 before | Expand all | Expand 10 after
6024 CheckGLError(); 6033 CheckGLError();
6025 } 6034 }
6026 6035
6027 // Include the auto-generated part of this file. We split this because it means 6036 // Include the auto-generated part of this file. We split this because it means
6028 // we can easily edit the non-auto generated parts right here in this file 6037 // we can easily edit the non-auto generated parts right here in this file
6029 // instead of having to edit some template or the code generator. 6038 // instead of having to edit some template or the code generator.
6030 #include "gpu/command_buffer/client/gles2_implementation_impl_autogen.h" 6039 #include "gpu/command_buffer/client/gles2_implementation_impl_autogen.h"
6031 6040
6032 } // namespace gles2 6041 } // namespace gles2
6033 } // namespace gpu 6042 } // namespace gpu
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698