Commit 7ea7588d authored by brettw@chromium.org's avatar brettw@chromium.org

Remove a log statement in PPAPI.

This removes a warning when painting an invalid region. This warning isn't
actually very helpful for developers and Flash was causing this error to spam
our logs.

BUG=141609

Review URL: https://chromiumcodereview.appspot.com/10836225

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@151500 0039d316-1c4b-4281-b951-d872f2087c98
parent fbcd3823
...@@ -248,11 +248,8 @@ void PPB_Graphics2D_Impl::PaintImageData(PP_Resource image_data, ...@@ -248,11 +248,8 @@ void PPB_Graphics2D_Impl::PaintImageData(PP_Resource image_data,
operation.paint_image = image_resource; operation.paint_image = image_resource;
if (!ValidateAndConvertRect(src_rect, image_resource->width(), if (!ValidateAndConvertRect(src_rect, image_resource->width(),
image_resource->height(), image_resource->height(),
&operation.paint_src_rect)) { &operation.paint_src_rect))
Log(PP_LOGLEVEL_ERROR,
"PPB_Graphics2D.PaintImageData: Rectangle is outside bounds.");
return; return;
}
// Validate the bitmap position using the previously-validated rect, there // Validate the bitmap position using the previously-validated rect, there
// should be no painted area outside of the image. // should be no painted area outside of the image.
...@@ -278,11 +275,8 @@ void PPB_Graphics2D_Impl::Scroll(const PP_Rect* clip_rect, ...@@ -278,11 +275,8 @@ void PPB_Graphics2D_Impl::Scroll(const PP_Rect* clip_rect,
if (!ValidateAndConvertRect(clip_rect, if (!ValidateAndConvertRect(clip_rect,
image_data_->width(), image_data_->width(),
image_data_->height(), image_data_->height(),
&operation.scroll_clip_rect)) { &operation.scroll_clip_rect))
Log(PP_LOGLEVEL_ERROR,
"PPB_Graphics2D.Scroll: Rectangle is outside bounds.");
return; return;
}
// If we're being asked to scroll by more than the clip rect size, just // If we're being asked to scroll by more than the clip rect size, just
// ignore this scroll command and say it worked. // ignore this scroll command and say it worked.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment