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

Unified Diff: ppapi/proxy/ppb_buffer_proxy.cc

Issue 7545014: Implement PPAPI VideoDecode out-of-process support (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 9 years, 5 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: ppapi/proxy/ppb_buffer_proxy.cc
diff --git a/ppapi/proxy/ppb_buffer_proxy.cc b/ppapi/proxy/ppb_buffer_proxy.cc
index 2e2ee907a1c47e5aae06bdd5f00f50208abdbb6b..2e782acb9a0de8bf05fa34e4f18757c4c5bc7535 100644
--- a/ppapi/proxy/ppb_buffer_proxy.cc
+++ b/ppapi/proxy/ppb_buffer_proxy.cc
@@ -14,10 +14,8 @@
#include "ppapi/c/dev/ppb_buffer_dev.h"
#include "ppapi/proxy/host_dispatcher.h"
#include "ppapi/proxy/plugin_dispatcher.h"
-#include "ppapi/proxy/plugin_resource.h"
#include "ppapi/proxy/ppapi_messages.h"
#include "ppapi/thunk/enter.h"
-#include "ppapi/thunk/ppb_buffer_api.h"
#include "ppapi/thunk/ppb_buffer_trusted_api.h"
#include "ppapi/thunk/thunk.h"
@@ -33,35 +31,6 @@ InterfaceProxy* CreateBufferProxy(Dispatcher* dispatcher,
} // namespace
-class Buffer : public ppapi::thunk::PPB_Buffer_API,
- public PluginResource {
- public:
- Buffer(const HostResource& resource,
- const base::SharedMemoryHandle& shm_handle,
- uint32_t size);
- virtual ~Buffer();
-
- // Resource overrides.
- virtual Buffer* AsBuffer() OVERRIDE;
-
- // ResourceObjectBase overrides.
- virtual ppapi::thunk::PPB_Buffer_API* AsPPB_Buffer_API() OVERRIDE;
-
- // PPB_Buffer_API implementation.
- virtual PP_Bool Describe(uint32_t* size_in_bytes) OVERRIDE;
- virtual PP_Bool IsMapped() OVERRIDE;
- virtual void* Map() OVERRIDE;
- virtual void Unmap() OVERRIDE;
-
- private:
- base::SharedMemory shm_;
- uint32_t size_;
- void* mapped_data_;
- int map_count_;
-
- DISALLOW_COPY_AND_ASSIGN(Buffer);
-};
-
Buffer::Buffer(const HostResource& resource,
const base::SharedMemoryHandle& shm_handle,
uint32_t size)

Powered by Google App Engine
This is Rietveld 408576698