Title: [110602] trunk/Source/WebCore
- Revision
- 110602
- Author
- [email protected]
- Date
- 2012-03-13 14:02:30 -0700 (Tue, 13 Mar 2012)
Log Message
Fix cast-align GCC warning
https://bugs.webkit.org/show_bug.cgi?id=80790
Reviewed by Dan Bates.
This touches unpackOneRowOfBGRA8ToRGBA8.
* platform/graphics/GraphicsContext3D.cpp:
(WebCore):
Modified Paths
Diff
Modified: trunk/Source/WebCore/ChangeLog (110601 => 110602)
--- trunk/Source/WebCore/ChangeLog 2012-03-13 20:59:59 UTC (rev 110601)
+++ trunk/Source/WebCore/ChangeLog 2012-03-13 21:02:30 UTC (rev 110602)
@@ -1,3 +1,15 @@
+2012-03-13 Rob Buis <[email protected]>
+
+ Fix cast-align GCC warning
+ https://bugs.webkit.org/show_bug.cgi?id=80790
+
+ Reviewed by Dan Bates.
+
+ This touches unpackOneRowOfBGRA8ToRGBA8.
+
+ * platform/graphics/GraphicsContext3D.cpp:
+ (WebCore):
+
2012-03-12 Simon Fraser <[email protected]>
Refactor some code that is used to check whether a layer needs backing store
Modified: trunk/Source/WebCore/platform/graphics/GraphicsContext3D.cpp (110601 => 110602)
--- trunk/Source/WebCore/platform/graphics/GraphicsContext3D.cpp 2012-03-13 20:59:59 UTC (rev 110601)
+++ trunk/Source/WebCore/platform/graphics/GraphicsContext3D.cpp 2012-03-13 21:02:30 UTC (rev 110602)
@@ -471,8 +471,8 @@
void unpackOneRowOfBGRA8ToRGBA8(const uint8_t* source, uint8_t* destination, unsigned int pixelsPerRow)
{
- const uint32_t* source32 = reinterpret_cast<const uint32_t*>(source);
- uint32_t* destination32 = reinterpret_cast<uint32_t*>(destination);
+ const uint32_t* source32 = reinterpret_cast_ptr<const uint32_t*>(source);
+ uint32_t* destination32 = reinterpret_cast_ptr<uint32_t*>(destination);
for (unsigned int i = 0; i < pixelsPerRow; ++i) {
uint32_t bgra = source32[i];
#if CPU(BIG_ENDIAN)
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo.cgi/webkit-changes