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

Unified Diff: content/common/gpu/gpu_channel.cc

Issue 1129943006: Implement StreamTexture::BindTexImage. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: CreateStreamTexture Flow Change. Created 5 years, 6 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_channel.cc
diff --git a/content/common/gpu/gpu_channel.cc b/content/common/gpu/gpu_channel.cc
index 6078d74fd1aa22938cfd149e16a515de68d68d46..bd2d2d5c0f9ee3edb889dc97f5aa94a3463d6f20 100644
--- a/content/common/gpu/gpu_channel.cc
+++ b/content/common/gpu/gpu_channel.cc
@@ -620,6 +620,16 @@ CreateCommandBufferResult GpuChannel::CreateViewCommandBuffer(
return CREATE_COMMAND_BUFFER_SUCCEEDED;
}
+bool GpuChannel::CreateStreamTexture(int32 image_id,
+ int32 route_id,
+ int32 stream_id) {
+ GpuCommandBufferStub* stub = LookupCommandBuffer(route_id);
+ DCHECK(stub);
+ bool success = false;
+ stub->CreateStreamTexture(image_id, stream_id, &success);
+ return success;
+}
+
GpuCommandBufferStub* GpuChannel::LookupCommandBuffer(int32 route_id) {
return stubs_.Lookup(route_id);
}

Powered by Google App Engine
This is Rietveld 408576698