Upstream version 7.36.149.0
[platform/framework/web/crosswalk.git] / src / mojo / examples / pepper_container_app / graphics_3d_resource.cc
index d354cef..2ad7dcd 100644 (file)
@@ -7,7 +7,7 @@
 #include "base/logging.h"
 #include "mojo/examples/pepper_container_app/mojo_ppapi_globals.h"
 #include "mojo/examples/pepper_container_app/plugin_instance.h"
-#include "mojo/public/gles2/gles2.h"
+#include "mojo/public/c/gles2/gles2.h"
 #include "ppapi/c/pp_errors.h"
 
 namespace mojo {
@@ -86,14 +86,11 @@ PP_Bool Graphics3DResource::SetGetBuffer(int32_t shm_id) {
   return PP_FALSE;
 }
 
-gpu::CommandBuffer::State Graphics3DResource::GetState() {
+scoped_refptr<gpu::Buffer> Graphics3DResource::CreateTransferBuffer(
+    uint32_t size,
+    int32* id) {
   NOTIMPLEMENTED();
-  return GetErrorState();
-}
-
-int32_t Graphics3DResource::CreateTransferBuffer(uint32_t size) {
-  NOTIMPLEMENTED();
-  return PP_FALSE;
+  return NULL;
 }
 
 PP_Bool Graphics3DResource::DestroyTransferBuffer(int32_t id) {
@@ -101,13 +98,6 @@ PP_Bool Graphics3DResource::DestroyTransferBuffer(int32_t id) {
   return PP_FALSE;
 }
 
-PP_Bool Graphics3DResource::GetTransferBuffer(int32_t id,
-                                              int* shm_handle,
-                                              uint32_t* shm_size) {
-  NOTIMPLEMENTED();
-  return PP_FALSE;
-}
-
 PP_Bool Graphics3DResource::Flush(int32_t put_offset) {
   NOTIMPLEMENTED();
   return PP_FALSE;