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

Unified Diff: webkit/plugins/ppapi/ppb_image_data_impl.h

Issue 6905088: New thunk system for Pepper proxy and implementation (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 7 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 | « webkit/plugins/ppapi/ppb_graphics_2d_impl.cc ('k') | webkit/plugins/ppapi/ppb_image_data_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/plugins/ppapi/ppb_image_data_impl.h
===================================================================
--- webkit/plugins/ppapi/ppb_image_data_impl.h (revision 84344)
+++ webkit/plugins/ppapi/ppb_image_data_impl.h (working copy)
@@ -9,6 +9,7 @@
#include "base/memory/scoped_ptr.h"
#include "ppapi/c/ppb_image_data.h"
#include "ppapi/shared_impl/image_data_impl.h"
+#include "ppapi/thunk/ppb_image_data_api.h"
#include "webkit/plugins/ppapi/plugin_delegate.h"
#include "webkit/plugins/ppapi/resource.h"
@@ -23,11 +24,16 @@
namespace ppapi {
class PPB_ImageData_Impl : public Resource,
- public pp::shared_impl::ImageDataImpl {
+ public pp::shared_impl::ImageDataImpl,
+ public ::ppapi::thunk::PPB_ImageData_API {
public:
explicit PPB_ImageData_Impl(PluginInstance* instance);
virtual ~PPB_ImageData_Impl();
+ bool Init(PP_ImageDataFormat format,
+ int width, int height,
+ bool init_to_zero);
+
int width() const { return width_; }
int height() const { return height_; }
@@ -47,16 +53,15 @@
static const PPB_ImageData* GetInterface();
static const PPB_ImageDataTrusted* GetTrustedInterface();
+ virtual ::ppapi::thunk::PPB_ImageData_API* AsImageData_API();
+
// Resource overrides.
virtual PPB_ImageData_Impl* AsPPB_ImageData_Impl();
- // PPB_ImageData implementation.
- bool Init(PP_ImageDataFormat format,
- int width, int height,
- bool init_to_zero);
- void Describe(PP_ImageDataDesc* desc) const;
- void* Map();
- void Unmap();
+ // PPB_ImageData_API implementation.
+ virtual PP_Bool Describe(PP_ImageDataDesc* desc);
+ virtual void* Map();
+ virtual void Unmap();
// PPB_ImageDataTrusted implementation.
int GetSharedMemoryHandle(uint32* byte_count) const;
« no previous file with comments | « webkit/plugins/ppapi/ppb_graphics_2d_impl.cc ('k') | webkit/plugins/ppapi/ppb_image_data_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698