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; |
} |