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

Unified Diff: third_party/WebKit/Source/modules/canvas2d/BaseRenderingContext2D.h

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/BaseRenderingContext2D.h
diff --git a/third_party/WebKit/Source/modules/canvas2d/BaseRenderingContext2D.h b/third_party/WebKit/Source/modules/canvas2d/BaseRenderingContext2D.h
index e5e22e80f42604e515bffe5d3938e0b922744516..d629a0c6674f416b37a0ba5c48ff43df1b6bf737 100644
--- a/third_party/WebKit/Source/modules/canvas2d/BaseRenderingContext2D.h
+++ b/third_party/WebKit/Source/modules/canvas2d/BaseRenderingContext2D.h
@@ -186,22 +186,20 @@ class MODULES_EXPORT BaseRenderingContext2D : public GarbageCollectedMixin,
ExceptionState&);
ImageData* createImageData(ImageData*, ExceptionState&) const;
- ImageData* createImageData(double width,
- double height,
- ExceptionState&) const;
- ImageData* getImageData(double sx,
- double sy,
- double sw,
- double sh,
+ ImageData* createImageData(int width, int height, ExceptionState&) const;
+ ImageData* getImageData(int sx,
+ int sy,
+ int sw,
+ int sh,
ExceptionState&) const;
- void putImageData(ImageData*, double dx, double dy, ExceptionState&);
+ void putImageData(ImageData*, int dx, int dy, ExceptionState&);
void putImageData(ImageData*,
- double dx,
- double dy,
- double dirtyX,
- double dirtyY,
- double dirtyWidth,
- double dirtyHeight,
+ int dx,
+ int dy,
+ int dirtyX,
+ int dirtyY,
+ int dirtyWidth,
+ int dirtyHeight,
ExceptionState&);
bool imageSmoothingEnabled() const;

Powered by Google App Engine
This is Rietveld 408576698