[iOS] Add USE(IOSURFACE_CANVAS_BACKING_STORE) to fix build
authorddkilzer@apple.com <ddkilzer@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sat, 11 Jan 2014 14:17:12 +0000 (14:17 +0000)
committerddkilzer@apple.com <ddkilzer@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sat, 11 Jan 2014 14:17:12 +0000 (14:17 +0000)
* 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).

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@161760 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Source/WebCore/ChangeLog
Source/WebCore/platform/graphics/cg/ImageBufferCG.cpp

index cf4ca24..84eaeeb 100644 (file)
@@ -1,5 +1,14 @@
 2014-01-11  David Kilzer  <ddkilzer@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  <ddkilzer@apple.com>
+
         [iOS] Multisampling is not available on iOS
 
         * platform/graphics/mac/GraphicsContext3DMac.mm:
index dbaaffd..0f6d63e 100644 (file)
@@ -147,8 +147,10 @@ ImageBuffer::ImageBuffer(const IntSize& size, float resolutionScale, ColorSpace
     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());