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

Unified Diff: gpu/command_buffer/service/in_process_command_buffer.h

Issue 331723003: gpu: Remove Create/DeleteImage IPC by adding an X11_PIXMAP_BUFFER GpuMemoryBuffer type. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: wip Created 6 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: gpu/command_buffer/service/in_process_command_buffer.h
diff --git a/gpu/command_buffer/service/in_process_command_buffer.h b/gpu/command_buffer/service/in_process_command_buffer.h
index f8986d81ab09e765d2c747024dc4831d05f9b3eb..1612b264d6a3b8a41015d938ee6854e54d6380c9 100644
--- a/gpu/command_buffer/service/in_process_command_buffer.h
+++ b/gpu/command_buffer/service/in_process_command_buffer.h
@@ -53,7 +53,6 @@ class ShaderTranslatorCache;
class CommandBufferServiceBase;
class GpuControlService;
-class GpuMemoryBufferFactory;
class GpuScheduler;
class TransferBufferManagerInterface;
@@ -68,8 +67,6 @@ class GPU_EXPORT InProcessCommandBuffer : public CommandBuffer,
explicit InProcessCommandBuffer(const scoped_refptr<Service>& service);
virtual ~InProcessCommandBuffer();
- static void SetGpuMemoryBufferFactory(GpuMemoryBufferFactory* factory);
-
// If |surface| is not NULL, use it directly; in this case, the command
// buffer gpu thread must be the same as the client thread. Otherwise create
// a new GLSurface.
@@ -177,7 +174,14 @@ class GPU_EXPORT InProcessCommandBuffer : public CommandBuffer,
void RetireSyncPointOnGpuThread(uint32 sync_point);
void SignalSyncPointOnGpuThread(uint32 sync_point,
const base::Closure& callback);
- void DestroyTransferBufferOnGputhread(int32 id);
+ void DestroyTransferBufferOnGpuThread(int32 id);
+ void RegisterGpuMemoryBufferOnGpuThread(
+ int32 id,
+ const gfx::GpuMemoryBufferHandle& handle,
+ size_t width,
+ size_t height,
+ unsigned internalformat);
+ void UnregisterGpuMemoryBufferOnGpuThread(int32 id);
// Callbacks:
void OnContextLost();

Powered by Google App Engine
This is Rietveld 408576698