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

Unified 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 side-by-side diff with in-line comments
Download patch
Index: gpu/command_buffer/client/gles2_implementation.cc
diff --git a/gpu/command_buffer/client/gles2_implementation.cc b/gpu/command_buffer/client/gles2_implementation.cc
index df474a73755c3c814ad8af9a6254b30894392486..a7c6fcdf01fa067ba781051f9fc0b82804f7e6bb 100644
--- a/gpu/command_buffer/client/gles2_implementation.cc
+++ b/gpu/command_buffer/client/gles2_implementation.cc
@@ -4818,6 +4818,15 @@ GLuint GLES2Implementation::CreateStreamTextureCHROMIUM(GLuint texture) {
return gpu_control_->CreateStreamTexture(texture);
}
+GLuint GLES2Implementation::CreateStreamTextureImageCHROMIUM(GLint image_id) {
+ GPU_CLIENT_SINGLE_THREAD_CHECK();
+ GPU_CLIENT_LOG("[" << GetLogPrefix() << "] CreateStreamTextureImageCHROMIUM("
+ << image_id << ")");
+ TRACE_EVENT0("gpu", "GLES2::CreateStreamTextureImageCHROMIUM");
+ helper_->CommandBufferHelper::Flush();
+ return gpu_control_->CreateStreamTextureImage(image_id);
+}
+
void GLES2Implementation::PostSubBufferCHROMIUM(
GLint x, GLint y, GLint width, GLint height) {
GPU_CLIENT_SINGLE_THREAD_CHECK();

Powered by Google App Engine
This is Rietveld 408576698