Changeset 238459 in webkit
- Timestamp:
- Nov 23, 2018, 7:07:40 AM (8 years ago)
- Location:
- trunk/Source
- Files:
-
- 5 edited
-
WebCore/ChangeLog (modified) (1 diff)
-
WebCore/platform/graphics/cocoa/IOSurface.h (modified) (2 diffs)
-
WebCore/platform/graphics/cocoa/IOSurface.mm (modified) (9 diffs)
-
WebKit/ChangeLog (modified) (1 diff)
-
WebKit/Shared/RemoteLayerTree/RemoteLayerBackingStore.mm (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r238457 r238459 1 2018-11-23 Antti Koivisto <antti@apple.com> 2 3 UI side compositing doesn't paint on Mac 4 https://bugs.webkit.org/show_bug.cgi?id=191908 5 6 Reviewed by Tim Horton. 7 8 For clarity put RGB10 and RGB10A8 formats behind PLATFORM(IOS_FAMILY). They are not supported on Mac. 9 10 * platform/graphics/cocoa/IOSurface.h: 11 * platform/graphics/cocoa/IOSurface.mm: 12 (WebCore::IOSurface::IOSurface): 13 (WebCore::IOSurface::ensurePlatformContext): 14 (WebCore::IOSurface::format const): 15 (WebCore::operator<<): 16 1 17 2018-11-23 Javier Fernandez <jfernandez@igalia.com> 2 18 -
trunk/Source/WebCore/platform/graphics/cocoa/IOSurface.h
r236074 r238459 32 32 #include "IntSize.h" 33 33 34 #if PLATFORM(IOS_FAMILY) 35 #define HAVE_IOSURFACE_RGB10 1 36 #endif 37 34 38 namespace WTF { 35 39 class MachSendRight; … … 51 55 RGBA, 52 56 YUV422, 57 #if HAVE(IOSURFACE_RGB10) 53 58 RGB10, 54 59 RGB10A8, 60 #endif 55 61 }; 56 62 -
trunk/Source/WebCore/platform/graphics/cocoa/IOSurface.mm
r237266 r238459 205 205 options = optionsFor32BitSurface(size, 'BGRA'); 206 206 break; 207 #if HAVE(IOSURFACE_RGB10) 207 208 case Format::RGB10: 208 209 options = optionsFor32BitSurface(size, 'w30r'); … … 211 212 options = optionsForBiplanarSurface(size, 'b3a8', 4, 1); 212 213 break; 214 #endif 213 215 case Format::YUV422: 214 216 options = optionsForBiplanarSurface(size, '422f', 1, 1); … … 288 290 case Format::RGBA: 289 291 break; 292 #if HAVE(IOSURFACE_RGB10) 290 293 case Format::RGB10: 291 294 case Format::RGB10A8: … … 296 299 bitmapInfo = kCGImageAlphaPremultipliedLast | kCGBitmapByteOrder16Host | kCGBitmapFloatComponents; 297 300 break; 301 #endif 298 302 case Format::YUV422: 299 303 ASSERT_NOT_REACHED(); … … 363 367 return Format::RGBA; 364 368 369 #if HAVE(IOSURFACE_RGB10) 365 370 if (pixelFormat == 'w30r') 366 371 return Format::RGB10; … … 368 373 if (pixelFormat == 'b3a8') 369 374 return Format::RGB10A8; 375 #endif 370 376 371 377 if (pixelFormat == '422f') … … 405 411 bool IOSurface::allowConversionFromFormatToFormat(Format sourceFormat, Format destFormat) 406 412 { 413 #if HAVE(IOSURFACE_RGB10) 407 414 if ((sourceFormat == Format::RGB10 || sourceFormat == Format::RGB10A8) && destFormat == Format::YUV422) 408 415 return false; 416 #endif 409 417 410 418 return true; … … 467 475 ts << "YUV422"; 468 476 break; 477 #if HAVE(IOSURFACE_RGB10) 469 478 case IOSurface::Format::RGB10: 470 479 ts << "RGB10"; … … 473 482 ts << "RGB10A8"; 474 483 break; 484 #endif 475 485 } 476 486 return ts; -
trunk/Source/WebKit/ChangeLog
r238456 r238459 1 2018-11-23 Antti Koivisto <antti@apple.com> 2 3 UI side compositing doesn't paint on Mac 4 https://bugs.webkit.org/show_bug.cgi?id=191908 5 6 Reviewed by Tim Horton. 7 8 * Shared/RemoteLayerTree/RemoteLayerBackingStore.mm: 9 (WebKit::RemoteLayerBackingStore::bytesPerPixel const): 10 (WebKit::RemoteLayerBackingStore::surfaceBufferFormat const): 11 12 These deep color formats are not supported on Mac. 13 1 14 2018-11-22 Chris Dumez <cdumez@apple.com> 2 15 -
trunk/Source/WebKit/Shared/RemoteLayerTree/RemoteLayerBackingStore.mm
r238108 r238459 182 182 case WebCore::IOSurface::Format::RGBA: return 4; 183 183 case WebCore::IOSurface::Format::YUV422: return 2; 184 #if HAVE(IOSURFACE_RGB10) 184 185 case WebCore::IOSurface::Format::RGB10: return 4; 185 186 case WebCore::IOSurface::Format::RGB10A8: return 5; 187 #endif 186 188 } 187 189 #endif … … 501 503 WebCore::IOSurface::Format RemoteLayerBackingStore::surfaceBufferFormat() const 502 504 { 505 #if HAVE(IOSURFACE_RGB10) 503 506 if (m_deepColor) 504 507 return m_isOpaque ? WebCore::IOSurface::Format::RGB10 : WebCore::IOSurface::Format::RGB10A8; 508 #endif 505 509 506 510 return WebCore::IOSurface::Format::RGBA;
Note:
See TracChangeset
for help on using the changeset viewer.