Title: [161760] trunk/Source/WebCore
- Revision
- 161760
- Author
- ddkil...@apple.com
- Date
- 2014-01-11 06:17:12 -0800 (Sat, 11 Jan 2014)
Log Message
[iOS] Add USE(IOSURFACE_CANVAS_BACKING_STORE) to fix build
* platform/graphics/cg/ImageBufferCG.cpp:
(WebCore::ImageBuffer::ImageBuffer): The 'width' and 'height'
variables are only used by code protected by
USE(IOSURFACE_CANVAS_BACKING_STORE).
Modified Paths
Diff
Modified: trunk/Source/WebCore/ChangeLog (161759 => 161760)
--- trunk/Source/WebCore/ChangeLog 2014-01-11 13:02:49 UTC (rev 161759)
+++ trunk/Source/WebCore/ChangeLog 2014-01-11 14:17:12 UTC (rev 161760)
@@ -1,5 +1,14 @@
2014-01-11 David Kilzer <ddkil...@apple.com>
+ [iOS] Add USE(IOSURFACE_CANVAS_BACKING_STORE) to fix build
+
+ * platform/graphics/cg/ImageBufferCG.cpp:
+ (WebCore::ImageBuffer::ImageBuffer): The 'width' and 'height'
+ variables are only used by code protected by
+ USE(IOSURFACE_CANVAS_BACKING_STORE).
+
+2014-01-11 David Kilzer <ddkil...@apple.com>
+
[iOS] Multisampling is not available on iOS
* platform/graphics/mac/GraphicsContext3DMac.mm:
Modified: trunk/Source/WebCore/platform/graphics/cg/ImageBufferCG.cpp (161759 => 161760)
--- trunk/Source/WebCore/platform/graphics/cg/ImageBufferCG.cpp 2014-01-11 13:02:49 UTC (rev 161759)
+++ trunk/Source/WebCore/platform/graphics/cg/ImageBufferCG.cpp 2014-01-11 14:17:12 UTC (rev 161760)
@@ -147,8 +147,10 @@
if (m_size.width() <= 0 || m_size.height() <= 0)
return;
+#if USE(IOSURFACE_CANVAS_BACKING_STORE)
Checked<int, RecordOverflow> width = m_size.width();
Checked<int, RecordOverflow> height = m_size.height();
+#endif
// Prevent integer overflows
m_data.m_bytesPerRow = 4 * Checked<unsigned, RecordOverflow>(m_data.m_backingStoreSize.width());
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes