+2012-06-25 Huang Dongsung <luxtella@company100.net>
+
+ Add static qualifier to GraphicsContext3D::extractImageData.
+ https://bugs.webkit.org/show_bug.cgi?id=89866
+
+ GraphicsContext3D::extractImageData does not use member variables.
+ Each platform Accelerated-compositing implementation can use this method in
+ order to get pixel data of an Image or ImageBuffer object.
+
+ Reviewed by Noam Rosenthal.
+
+ No new tests since there's no change on code behavior.
+
+ * platform/graphics/GraphicsContext3D.h:
+ (GraphicsContext3D):
+
2012-06-25 Pavel Feldman <pfeldman@chromium.org>
Web Inspector: toggling style should not start property edit first.
// return the suggested GL error indicating the cause of the failure:
// INVALID_VALUE if width/height is negative or overflow happens.
// INVALID_ENUM if format/type is illegal.
- GC3Denum computeImageSizeInBytes(GC3Denum format,
+ static GC3Denum computeImageSizeInBytes(GC3Denum format,
GC3Denum type,
GC3Dsizei width,
GC3Dsizei height,
// packing the pixel data according to the given format and type,
// and obeying the flipY, premultiplyAlpha, and ignoreGammaAndColorProfile
// flags. Returns true upon success.
- bool extractImageData(Image* image,
+ static bool extractImageData(Image*,
GC3Denum format,
GC3Denum type,
bool flipY,
// packing the pixel data according to the given format and type,
// and obeying the flipY and premultiplyAlpha flags. Returns true
// upon success.
- bool extractImageData(ImageData*,
+ static bool extractImageData(ImageData*,
GC3Denum format,
GC3Denum type,
bool flipY,
// If the data is not tightly packed according to the passed
// unpackAlignment, the output data will be tightly packed.
// Returns true if successful, false if any error occurred.
- bool extractTextureData(unsigned int width, unsigned int height,
+ static bool extractTextureData(unsigned int width, unsigned int height,
GC3Denum format, GC3Denum type,
unsigned int unpackAlignment,
bool flipY, bool premultiplyAlpha,
Vector<uint8_t>& data);
// Flips the given image data vertically, in-place.
- void flipVertically(void* imageData,
+ static void flipVertically(void* imageData,
unsigned int width,
unsigned int height,
unsigned int bytesPerPixel,
//
// No vertical flip of the image data is performed by this
// method.
- bool getImageData(Image* image,
+ static bool getImageData(Image*,
GC3Denum format,
GC3Denum type,
bool premultiplyAlpha,
// A sourceUnpackAlignment of zero indicates that the source
// data is tightly packed. Non-zero values may take a slow path.
// Destination data will have no gaps between rows.
- bool packPixels(const uint8_t* sourceData,
+ static bool packPixels(const uint8_t* sourceData,
SourceDataFormat sourceDataFormat,
unsigned int width,
unsigned int height,