Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(674)

Unified Diff: webkit/plugins/ppapi/ppb_flash_impl.cc

Issue 10451068: Fixing gcc 4.7 building problems. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Wrap unisdt.h using OS_POSIX macro Created 8 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « webkit/glue/webkit_glue.gypi ('k') | webkit/plugins/ppapi/ppb_video_capture_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/plugins/ppapi/ppb_flash_impl.cc
diff --git a/webkit/plugins/ppapi/ppb_flash_impl.cc b/webkit/plugins/ppapi/ppb_flash_impl.cc
index 668a8c13b36d393546074ce9c12874be9e239e26..9290ba06ea3e3be7fc7f2acac1380b5f590335ad 100644
--- a/webkit/plugins/ppapi/ppb_flash_impl.cc
+++ b/webkit/plugins/ppapi/ppb_flash_impl.cc
@@ -124,9 +124,10 @@ PP_Bool PPB_Flash_Impl::DrawGlyphs(PP_Instance instance,
SkAutoCanvasRestore acr(canvas, true);
// Clip is applied in pixels before the transform.
- SkRect clip_rect = { clip->point.x, clip->point.y,
- clip->point.x + clip->size.width,
- clip->point.y + clip->size.height };
+ SkRect clip_rect = { SkIntToScalar(clip->point.x),
+ SkIntToScalar(clip->point.y),
+ SkIntToScalar(clip->point.x + clip->size.width),
+ SkIntToScalar(clip->point.y + clip->size.height) };
canvas->clipRect(clip_rect);
// Convert & set the matrix.
« no previous file with comments | « webkit/glue/webkit_glue.gypi ('k') | webkit/plugins/ppapi/ppb_video_capture_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698