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

Unified Diff: content/common/gpu/gpu_command_buffer_stub.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: content/common/gpu/gpu_command_buffer_stub.cc
diff --git a/content/common/gpu/gpu_command_buffer_stub.cc b/content/common/gpu/gpu_command_buffer_stub.cc
index 0bb4a46e4f80d97494cbf8daf1986e3b103af421..e230c712d88e9782e1ce3e42f7b5e4035b56b6e0 100644
--- a/content/common/gpu/gpu_command_buffer_stub.cc
+++ b/content/common/gpu/gpu_command_buffer_stub.cc
@@ -290,6 +290,9 @@ bool GpuCommandBufferStub::OnMessageReceived(const IPC::Message& message) {
IPC_MESSAGE_HANDLER(GpuCommandBufferMsg_DestroyImage, OnDestroyImage);
IPC_MESSAGE_HANDLER(GpuCommandBufferMsg_CreateStreamTexture,
OnCreateStreamTexture)
+ IPC_MESSAGE_HANDLER(GpuCommandBufferMsg_CreateStreamTextureImage,
+ OnCreateStreamTextureImage)
+
IPC_MESSAGE_UNHANDLED(handled = false)
IPC_END_MESSAGE_MAP()
@@ -636,7 +639,18 @@ void GpuCommandBufferStub::OnInitialize(
void GpuCommandBufferStub::OnCreateStreamTexture(
uint32 texture_id, int32 stream_id, bool* succeeded) {
#if defined(OS_ANDROID)
- *succeeded = StreamTexture::Create(this, texture_id, stream_id);
+ *succeeded = StreamTexture::CreateStreamTexture(this, texture_id, stream_id);
+#else
+ *succeeded = false;
+#endif
+}
+
+void GpuCommandBufferStub::OnCreateStreamTextureImage(int32 image_id,
+ int32 stream_id,
+ bool* succeeded) {
+#if defined(OS_ANDROID)
+ *succeeded =
+ StreamTexture::CreateStreamTextureImage(this, image_id, stream_id);
#else
*succeeded = false;
#endif

Powered by Google App Engine
This is Rietveld 408576698