7 #include "ppapi/c/dev/ppb_buffer_dev.h"
16 template <>
const char* interface_name<PPB_Buffer_Dev>() {
17 return PPB_BUFFER_DEV_INTERFACE;
38 if (!has_interface<PPB_Buffer_Dev>())
52 get_interface<PPB_Buffer_Dev>()->Unmap(
pp_resource());
61 void Buffer_Dev::Init() {
62 if (get_interface<PPB_Buffer_Dev>()->Describe(
pp_resource(), &size_)) {
63 data_ = get_interface<PPB_Buffer_Dev>()->Map(
pp_resource());
void PassRefFromConstructor(PP_Resource resource)
Buffer_Dev & operator=(const Buffer_Dev &rhs)
PP_Resource pp_resource() const
PP_Instance pp_instance() const
A reference counted module resource.
Resource & operator=(const Resource &other)