#include "content/common/gpu/gpu_memory_manager.h"
#include "ipc/ipc_listener.h"
#include "ipc/ipc_sender.h"
+#include "ui/gfx/gpu_memory_buffer.h"
#include "ui/gfx/native_widget_types.h"
#include "ui/gl/gl_surface.h"
base::MessageLoopProxy* io_message_loop,
base::WaitableEvent* shutdown_event,
IPC::SyncChannel* channel);
- virtual ~GpuChannelManager();
+ ~GpuChannelManager() override;
// Remove the channel for a particular renderer.
void RemoveChannel(int client_id);
// Listener overrides.
- virtual bool OnMessageReceived(const IPC::Message& msg) OVERRIDE;
+ bool OnMessageReceived(const IPC::Message& msg) override;
// Sender overrides.
- virtual bool Send(IPC::Message* msg) OVERRIDE;
+ bool Send(IPC::Message* msg) override;
bool HandleMessagesScheduled();
uint64 MessagesProcessed();
const GPUCreateCommandBufferConfig& init_params,
int32 route_id);
void OnLoadedShader(std::string shader);
- void DestroyGpuMemoryBuffer(const gfx::GpuMemoryBufferHandle& handle);
- void DestroyGpuMemoryBufferOnIO(const gfx::GpuMemoryBufferHandle& handle);
- void OnDestroyGpuMemoryBuffer(const gfx::GpuMemoryBufferHandle& handle,
+ void DestroyGpuMemoryBuffer(gfx::GpuMemoryBufferType type,
+ gfx::GpuMemoryBufferId id,
+ int client_id);
+ void DestroyGpuMemoryBufferOnIO(gfx::GpuMemoryBufferType type,
+ gfx::GpuMemoryBufferId id,
+ int client_id);
+ void OnDestroyGpuMemoryBuffer(gfx::GpuMemoryBufferType type,
+ gfx::GpuMemoryBufferId id,
+ int client_id,
int32 sync_point);
void OnLoseAllContexts();