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

Unified Diff: content/common/gpu/client/command_buffer_proxy_impl.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: content/common/gpu/client/command_buffer_proxy_impl.cc
diff --git a/content/common/gpu/client/command_buffer_proxy_impl.cc b/content/common/gpu/client/command_buffer_proxy_impl.cc
index c3c841924355e6beb7f1f3e4685d20e688248ff0..15be26adc5c3a25b5029eb2c6a7c5611e7356f24 100644
--- a/content/common/gpu/client/command_buffer_proxy_impl.cc
+++ b/content/common/gpu/client/command_buffer_proxy_impl.cc
@@ -469,7 +469,7 @@ int32_t CommandBufferProxyImpl::CreateGpuMemoryBufferImage(
return CreateImage(buffer->AsClientBuffer(), width, height, internalformat);
}
-uint32 CommandBufferProxyImpl::CreateStreamTexture(uint32 texture_id) {
+int32 CommandBufferProxyImpl::CreateStreamTexture(uint32 texture_id) {
CheckLock();
if (last_state_.error != gpu::error::kNoError)
return 0;
@@ -485,6 +485,18 @@ uint32 CommandBufferProxyImpl::CreateStreamTexture(uint32 texture_id) {
return stream_id;
}
+void CommandBufferProxyImpl::SetStreamTextureSize(uint32 texture_id,
+ int32 stream_id,
+ size_t width,
+ size_t height) {
+ CheckLock();
+ if (last_state_.error != gpu::error::kNoError)
+ return;
+
+ Send(new GpuCommandBufferMsg_SetStreamTextureSize(route_id_, texture_id,
+ stream_id, width, height));
+}
+
void CommandBufferProxyImpl::SetLock(base::Lock* lock) {
lock_ = lock;
}

Powered by Google App Engine
This is Rietveld 408576698