Index: remoting/client/plugin/pepper_view.cc |
=================================================================== |
--- remoting/client/plugin/pepper_view.cc (revision 53948) |
+++ remoting/client/plugin/pepper_view.cc (working copy) |
@@ -43,14 +43,12 @@ |
return; |
} |
- // TODO(ajwong): We're assuming the native format is BGRA_PREMUL below. This |
- // is wrong. |
- pp::ImageData image(pp::ImageData::GetNativeImageDataFormat(), |
+ // TODO(ajwong): We shouldn't assume the image data format. |
+ pp::ImageData image(PP_IMAGEDATAFORMAT_BGRA_PREMUL, |
pp::Size(viewport_width_, viewport_height_), |
false); |
if (image.is_null()) { |
- LOG(ERROR) << "Unable to allocate image of size: " |
- << viewport_width_ << "x" << viewport_height_; |
+ LOG(ERROR) << "Unable to allocate image."; |
return; |
} |