summaryrefslogtreecommitdiffstats
path: root/webkit/plugins/ppapi/ppb_graphics_2d_impl.cc
diff options
context:
space:
mode:
authorbrettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-08-14 17:20:37 +0000
committerbrettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-08-14 17:20:37 +0000
commit7ea7588daff0e268105b49ba5a82178e6d0221aa (patch)
treea53503c3d73ee5b1e6ea1cdfee51cf7f0ce62cec /webkit/plugins/ppapi/ppb_graphics_2d_impl.cc
parentfbcd38238a5f9b1fc38c8b3ea1fefdd8b65e8955 (diff)
downloadchromium_src-7ea7588daff0e268105b49ba5a82178e6d0221aa.zip
chromium_src-7ea7588daff0e268105b49ba5a82178e6d0221aa.tar.gz
chromium_src-7ea7588daff0e268105b49ba5a82178e6d0221aa.tar.bz2
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
Diffstat (limited to 'webkit/plugins/ppapi/ppb_graphics_2d_impl.cc')
-rw-r--r--webkit/plugins/ppapi/ppb_graphics_2d_impl.cc10
1 files changed, 2 insertions, 8 deletions
diff --git a/webkit/plugins/ppapi/ppb_graphics_2d_impl.cc b/webkit/plugins/ppapi/ppb_graphics_2d_impl.cc
index c1d3829..40a88df 100644
--- a/webkit/plugins/ppapi/ppb_graphics_2d_impl.cc
+++ b/webkit/plugins/ppapi/ppb_graphics_2d_impl.cc
@@ -248,11 +248,8 @@ void PPB_Graphics2D_Impl::PaintImageData(PP_Resource image_data,
operation.paint_image = image_resource;
if (!ValidateAndConvertRect(src_rect, image_resource->width(),
image_resource->height(),
- &operation.paint_src_rect)) {
- Log(PP_LOGLEVEL_ERROR,
- "PPB_Graphics2D.PaintImageData: Rectangle is outside bounds.");
+ &operation.paint_src_rect))
return;
- }
// Validate the bitmap position using the previously-validated rect, there
// should be no painted area outside of the image.
@@ -278,11 +275,8 @@ void PPB_Graphics2D_Impl::Scroll(const PP_Rect* clip_rect,
if (!ValidateAndConvertRect(clip_rect,
image_data_->width(),
image_data_->height(),
- &operation.scroll_clip_rect)) {
- Log(PP_LOGLEVEL_ERROR,
- "PPB_Graphics2D.Scroll: Rectangle is outside bounds.");
+ &operation.scroll_clip_rect))
return;
- }
// If we're being asked to scroll by more than the clip rect size, just
// ignore this scroll command and say it worked.