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

Unified Diff: content/common/gpu/client/command_buffer_proxy_impl.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
« no previous file with comments | « content/common/gpu/client/command_buffer_proxy_impl.h ('k') | content/common/gpu/gpu_command_buffer_stub.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 60cc94af803d22b15e21457b8b42f1d75c55b25c..3243f1b219394228b9ad618dbaaa0fb88f9e2240 100644
--- a/content/common/gpu/client/command_buffer_proxy_impl.cc
+++ b/content/common/gpu/client/command_buffer_proxy_impl.cc
@@ -452,6 +452,23 @@ uint32 CommandBufferProxyImpl::CreateStreamTexture(uint32 texture_id) {
return stream_id;
}
+uint32 CommandBufferProxyImpl::CreateStreamTextureImage(int32 image_id) {
no sievers 2015/07/20 23:33:08 It would be nice if we could return the image_id h
+ CheckLock();
+ if (last_state_.error != gpu::error::kNoError)
+ return 0;
+
+ int32 stream_id = channel_->GenerateRouteID();
+ bool succeeded = false;
+ Send(new GpuCommandBufferMsg_CreateStreamTextureImage(route_id_, image_id,
+ stream_id, &succeeded));
+ if (!succeeded) {
+ DLOG(ERROR)
+ << "GpuCommandBufferMsg_CreateStreamTextureImage returned failure";
+ return 0;
+ }
+ return stream_id;
+}
+
void CommandBufferProxyImpl::SetLock(base::Lock* lock) {
lock_ = lock;
}
« no previous file with comments | « content/common/gpu/client/command_buffer_proxy_impl.h ('k') | content/common/gpu/gpu_command_buffer_stub.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698