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

Unified Diff: gpu/command_buffer/client/gles2_implementation.cc

Issue 1417853006: gpu: introduce glSetStreamTextureSizeCHROMIUM(GLuint texture, GLint stream_id, GLsizei width, GLsiz… Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix android_webview.test failure 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 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 4fcb0b3217102debe568bd972bbadbecf86a0d34..e0e1e7b9961d918e1e787b7697e783c33501eab2 100644
--- a/gpu/command_buffer/client/gles2_implementation.cc
+++ b/gpu/command_buffer/client/gles2_implementation.cc
@@ -4842,7 +4842,7 @@ void GLES2Implementation::GetTransformFeedbackVaryingsCHROMIUM(
memcpy(info, &result[0], result.size());
}
-GLuint GLES2Implementation::CreateStreamTextureCHROMIUM(GLuint texture) {
+GLint GLES2Implementation::CreateStreamTextureCHROMIUM(GLuint texture) {
GPU_CLIENT_SINGLE_THREAD_CHECK();
GPU_CLIENT_LOG("[" << GetLogPrefix() << "] CreateStreamTextureCHROMIUM("
<< texture << ")");
@@ -4851,6 +4851,18 @@ GLuint GLES2Implementation::CreateStreamTextureCHROMIUM(GLuint texture) {
return gpu_control_->CreateStreamTexture(texture);
}
+void GLES2Implementation::SetStreamTextureSizeCHROMIUM(GLuint texture,
+ GLint stream_id,
+ GLsizei width,
+ GLsizei height) {
+ GPU_CLIENT_SINGLE_THREAD_CHECK();
+ GPU_CLIENT_LOG("[" << GetLogPrefix() << "] SetStreamTextureSizeCHROMIUM("
+ << texture << ", " << stream_id << ", " << width << ","
+ << height << ")");
+ TRACE_EVENT0("gpu", "GLES2::SetStreamTextureSizeCHROMIUM");
+ return gpu_control_->SetStreamTextureSize(texture, stream_id, width, height);
+}
+
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