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

Unified Diff: content/browser/gpu/gpu_process_host.h

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/browser/gpu/gpu_process_host.h
diff --git a/content/browser/gpu/gpu_process_host.h b/content/browser/gpu/gpu_process_host.h
index 7df522a80b6c87619432e93ae66af269643e03a4..40e06f909f46b81244002d57a8254094483a4e6f 100644
--- a/content/browser/gpu/gpu_process_host.h
+++ b/content/browser/gpu/gpu_process_host.h
@@ -67,6 +67,8 @@ class GpuProcessHost : public BrowserChildProcessHostDelegate,
typedef base::Callback<void(CreateCommandBufferResult)>
CreateCommandBufferCallback;
+ typedef base::Callback<void(bool)> CreateStreamTextureCallback;
+
typedef base::Callback<void(const gfx::GpuMemoryBufferHandle& handle)>
CreateGpuMemoryBufferCallback;
@@ -124,6 +126,12 @@ class GpuProcessHost : public BrowserChildProcessHostDelegate,
int route_id,
const CreateCommandBufferCallback& callback);
+ void CreateStreamTexture(int32 image_id,
+ int client_id,
+ int32 route_id,
+ int32 stream_id,
+ const CreateStreamTextureCallback& callback);
+
// Tells the GPU process to create a new GPU memory buffer.
void CreateGpuMemoryBuffer(gfx::GpuMemoryBufferId id,
const gfx::Size& size,
@@ -170,6 +178,7 @@ class GpuProcessHost : public BrowserChildProcessHostDelegate,
void OnInitialized(bool result, const gpu::GPUInfo& gpu_info);
void OnChannelEstablished(const IPC::ChannelHandle& channel_handle);
void OnCommandBufferCreated(CreateCommandBufferResult result);
+ void OnStreamTextureCreated(bool result);
void OnDestroyCommandBuffer(int32 surface_id);
void OnGpuMemoryBufferCreated(const gfx::GpuMemoryBufferHandle& handle);
void OnDidCreateOffscreenContext(const GURL& url);
@@ -208,6 +217,9 @@ class GpuProcessHost : public BrowserChildProcessHostDelegate,
// The pending create command buffer requests we need to reply to.
std::queue<CreateCommandBufferCallback> create_command_buffer_requests_;
+ // The pending create command buffer requests we need to reply to.
+ std::queue<CreateStreamTextureCallback> create_stream_texture_requests_;
+
// The pending create gpu memory buffer requests we need to reply to.
std::queue<CreateGpuMemoryBufferCallback> create_gpu_memory_buffer_requests_;

Powered by Google App Engine
This is Rietveld 408576698