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

Unified Diff: third_party/WebKit/Source/modules/canvas2d/CanvasRenderingContext2D.idl

Issue 2771933002: Update createImageData/getImageData/putImageData from float to long (Closed)
Patch Set: Reset tests Created 3 years, 9 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
Index: third_party/WebKit/Source/modules/canvas2d/CanvasRenderingContext2D.idl
diff --git a/third_party/WebKit/Source/modules/canvas2d/CanvasRenderingContext2D.idl b/third_party/WebKit/Source/modules/canvas2d/CanvasRenderingContext2D.idl
index a644045f6d6ac75550bc20e3780f56cbc9045ccd..9fa38ca183503335b4b25d49e0ecb8d9e271c231 100644
--- a/third_party/WebKit/Source/modules/canvas2d/CanvasRenderingContext2D.idl
+++ b/third_party/WebKit/Source/modules/canvas2d/CanvasRenderingContext2D.idl
@@ -125,10 +125,10 @@ enum ImageSmoothingQuality {"low", "medium", "high"};
// pixel manipulation
[RaisesException] ImageData createImageData(ImageData imagedata);
- [RaisesException] ImageData createImageData(double sw, double sh);
- [RaisesException] ImageData getImageData(double sx, double sy, double sw, double sh);
- [RaisesException] void putImageData(ImageData imagedata, double dx, double dy);
- [RaisesException] void putImageData(ImageData imagedata, double dx, double dy, double dirtyX, double dirtyY, double dirtyWidth, double dirtyHeight);
+ [RaisesException] ImageData createImageData(long sw, long sh);
+ [RaisesException] ImageData getImageData(long sx, long sy, long sw, long sh);
+ [RaisesException] void putImageData(ImageData imagedata, long dx, long dy);
+ [RaisesException] void putImageData(ImageData imagedata, long dx, long dy, long dirtyX, long dirtyY, long dirtyWidth, long dirtyHeight);
// Context state
// Should be merged with WebGL counterpart in CanvasRenderingContext, once no-longer experimental

Powered by Google App Engine
This is Rietveld 408576698