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

Unified Diff: content/common/gpu/gpu_command_buffer_stub.h

Issue 7395020: Create new GLSurface for cross process image transport. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: "" Created 9 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/gpu_channel_manager.cc ('k') | content/common/gpu/gpu_command_buffer_stub.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/gpu/gpu_command_buffer_stub.h
diff --git a/content/common/gpu/gpu_command_buffer_stub.h b/content/common/gpu/gpu_command_buffer_stub.h
index b97234d4c072f7821e8a8da24707c629f7651bc4..26dd64b2db3e7f8a7e56a14df23c75a561a7a387 100644
--- a/content/common/gpu/gpu_command_buffer_stub.h
+++ b/content/common/gpu/gpu_command_buffer_stub.h
@@ -58,6 +58,9 @@ class GpuCommandBufferStub
// Get the GLContext associated with this object.
gpu::GpuScheduler* scheduler() const { return scheduler_.get(); }
+ // Get the GpuChannel associated with this object.
+ GpuChannel* channel() const { return channel_; }
+
// Identifies the renderer process.
int32 renderer_id() const { return renderer_id_; }
@@ -81,15 +84,10 @@ class GpuCommandBufferStub
void ViewResized();
-#if defined(TOUCH_UI)
- void AcceleratedSurfaceIOSurfaceSet(uint64 surface_id);
- void AcceleratedSurfaceReleased(uint64 surface_id);
-#endif // defined(TOUCH_UI)
-
-#if defined(OS_MACOSX) || defined(TOUCH_UI)
+#if defined(OS_MACOSX)
// Called only by the GpuChannel.
void AcceleratedSurfaceBuffersSwapped(uint64 swap_buffers_count);
-#endif // defined(OS_MACOSX) || defined(TOUCH_UI)
+#endif // defined(OS_MACOSX)
// Register a callback to be Run() whenever the underlying scheduler receives
// a set_token() call. The callback will be Run() with the just-set token as
@@ -97,6 +95,9 @@ class GpuCommandBufferStub
void AddSetTokenCallback(const base::Callback<void(int32)>& callback);
private:
+ // Cleans up and sends reply if OnInitialize failed.
+ void OnInitializeFailed(IPC::Message* reply_message);
+
// Message handlers:
void OnInitialize(base::SharedMemoryHandle ring_buffer,
int32 size,
@@ -131,11 +132,8 @@ class GpuCommandBufferStub
#if defined(OS_MACOSX)
void OnSetWindowSize(const gfx::Size& size);
-#endif // defined(OS_MACOSX)
-
-#if defined(OS_MACOSX) || defined(TOUCH_UI)
void SwapBuffersCallback();
-#endif // defined(TOUCH_UI)
+#endif // defined(OS_MACOSX)
void ResizeCallback(gfx::Size size);
void ReportState();
« no previous file with comments | « content/common/gpu/gpu_channel_manager.cc ('k') | content/common/gpu/gpu_command_buffer_stub.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698