| Index: ppapi/cpp/image_data.cc
|
| diff --git a/ppapi/cpp/image_data.cc b/ppapi/cpp/image_data.cc
|
| index a0c3aeff7969caee0e60e24615dd758f714c804c..d9738964795eb698d8d612a1b2964f1164594415 100644
|
| --- a/ppapi/cpp/image_data.cc
|
| +++ b/ppapi/cpp/image_data.cc
|
| @@ -92,9 +92,12 @@ PP_ImageDataFormat ImageData::GetNativeImageDataFormat() {
|
| void ImageData::InitData() {
|
| if (!has_interface<PPB_ImageData_1_0>())
|
| return;
|
| - if (!get_interface<PPB_ImageData_1_0>()->Describe(pp_resource(), &desc_) ||
|
| - !(data_ = get_interface<PPB_ImageData_1_0>()->Map(pp_resource())))
|
| - *this = ImageData();
|
| + if (get_interface<PPB_ImageData_1_0>()->Describe(pp_resource(), &desc_)) {
|
| + data_ = get_interface<PPB_ImageData_1_0>()->Map(pp_resource());
|
| + if (data_)
|
| + return;
|
| + }
|
| + *this = ImageData();
|
| }
|
|
|
| } // namespace pp
|
|
|