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

Unified Diff: ppapi/proxy/ppapi_command_buffer_proxy.cc

Issue 634083002: gpu: Compositor management of GpuMemoryBuffer instances. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@cc-pre-chromium-image-refactor
Patch Set: rebase Created 6 years, 2 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 | « ppapi/proxy/ppapi_command_buffer_proxy.h ('k') | ui/compositor/compositor.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/proxy/ppapi_command_buffer_proxy.cc
diff --git a/ppapi/proxy/ppapi_command_buffer_proxy.cc b/ppapi/proxy/ppapi_command_buffer_proxy.cc
index 60c81400720b784f32308b5c2d59544c5c25ba18..7a2783a20064415baa55dc52cf01cfcc2a25b07d 100644
--- a/ppapi/proxy/ppapi_command_buffer_proxy.cc
+++ b/ppapi/proxy/ppapi_command_buffer_proxy.cc
@@ -195,18 +195,25 @@ gpu::Capabilities PpapiCommandBufferProxy::GetCapabilities() {
return gpu::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 -1;
+}
+
+void PpapiCommandBufferProxy::DestroyImage(int32 id) {
NOTREACHED();
- return NULL;
}
-void PpapiCommandBufferProxy::DestroyGpuMemoryBuffer(int32 id) {
+int32 PpapiCommandBufferProxy::CreateGpuMemoryBufferImage(
+ size_t width,
+ size_t height,
+ unsigned internalformat,
+ unsigned usage) {
NOTREACHED();
+ return -1;
}
bool PpapiCommandBufferProxy::Send(IPC::Message* msg) {
« no previous file with comments | « ppapi/proxy/ppapi_command_buffer_proxy.h ('k') | ui/compositor/compositor.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698