5 #ifndef PPAPI_CPP_IMAGE_DATA_H_
6 #define PPAPI_CPP_IMAGE_DATA_H_
8 #include "ppapi/c/ppb_image_data.h"
9 #include "ppapi/cpp/point.h"
10 #include "ppapi/cpp/size.h"
11 #include "ppapi/cpp/resource.h"
97 PP_ImageDataFormat
format()
const {
return desc_.format; }
112 void*
data()
const {
return data_; }
135 PP_ImageDataDesc desc_;
141 #endif // PPAPI_CPP_IMAGE_DATA_H_
PP_ImageDataFormat format() const
static bool IsImageDataFormatSupported(PP_ImageDataFormat format)
A 2 dimensional point with 0,0 being the upper-left starting coordinate.
ImageData & operator=(const ImageData &other)
A size of an object based on width and height.
const uint32_t * GetAddr32(const Point &coord) const
A reference counted module resource.
static PP_ImageDataFormat GetNativeImageDataFormat()