PpapiCommandBufferProxy::PpapiCommandBufferProxy(
const ppapi::HostResource& resource,
ProxyChannel* channel,
+ const gpu::Capabilities& capabilities,
const SerializedHandle& shared_state)
- : resource_(resource),
+ : capabilities_(capabilities),
+ resource_(resource),
channel_(channel) {
shared_state_shm_.reset(
new base::SharedMemory(shared_state.shmem(), false));
ppapi::API_ID_PPB_GRAPHICS_3D, resource_, id));
}
-void PpapiCommandBufferProxy::Echo(const base::Closure& callback) {
- NOTREACHED();
-}
-
uint32 PpapiCommandBufferProxy::CreateStreamTexture(uint32 texture_id) {
NOTREACHED();
return 0;
}
gpu::Capabilities PpapiCommandBufferProxy::GetCapabilities() {
- // TODO(boliu): Need to implement this to use cc in Pepper. Tracked in
- // crbug.com/325391.
- return gpu::Capabilities();
+ return capabilities_;
}
-gfx::GpuMemoryBuffer* PpapiCommandBufferProxy::CreateGpuMemoryBuffer(
- size_t width,
- size_t height,
- unsigned internalformat,
- unsigned usage,
- int32* id) {
+int32 PpapiCommandBufferProxy::CreateImage(ClientBuffer buffer,
+ size_t width,
+ size_t height,
+ unsigned internalformat) {
NOTREACHED();
- return NULL;
+ return -1;
}
-void PpapiCommandBufferProxy::DestroyGpuMemoryBuffer(int32 id) {
+void PpapiCommandBufferProxy::DestroyImage(int32 id) {
+ NOTREACHED();
+}
+
+int32 PpapiCommandBufferProxy::CreateGpuMemoryBufferImage(
+ size_t width,
+ size_t height,
+ unsigned internalformat,
+ unsigned usage) {
NOTREACHED();
+ return -1;
}
bool PpapiCommandBufferProxy::Send(IPC::Message* msg) {