⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 195979 in webkit


Ignore:
Timestamp:
Feb 1, 2016, 2:07:06 PM (11 years ago)
Author:
timothy_horton@apple.com
Message:

Move some SPI declarations into the appropriate SPI header
https://bugs.webkit.org/show_bug.cgi?id=153755

Reviewed by Darin Adler.

  • platform/graphics/cocoa/IOSurface.mm:
  • platform/spi/cg/CoreGraphicsSPI.h:
Location:
trunk/Source/WebCore
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r195975 r195979  
     12016-02-01  Tim Horton  <timothy_horton@apple.com>
     2
     3        Move some SPI declarations into the appropriate SPI header
     4        https://bugs.webkit.org/show_bug.cgi?id=153755
     5
     6        Reviewed by Darin Adler.
     7
     8        * platform/graphics/cocoa/IOSurface.mm:
     9        * platform/spi/cg/CoreGraphicsSPI.h:
     10
    1112016-02-01  Tim Horton  <timothy_horton@apple.com>
    212
  • trunk/Source/WebCore/platform/graphics/cocoa/IOSurface.mm

    r195975 r195979  
    2929#if USE(IOSURFACE)
    3030
     31#import "CoreGraphicsSPI.h"
    3132#import "GraphicsContextCG.h"
    3233#import "IOSurfacePool.h"
     
    3637#import "MachSendRight.h"
    3738#import <wtf/Assertions.h>
    38 
    39 extern "C" {
    40 CGContextRef CGIOSurfaceContextCreate(IOSurfaceRef, size_t, size_t, size_t, size_t, CGColorSpaceRef, CGBitmapInfo);
    41 CGImageRef CGIOSurfaceContextCreateImage(CGContextRef);
    42 CGImageRef CGIOSurfaceContextCreateImageReference(CGContextRef);
    43 }
    4439
    4540#if PLATFORM(IOS)
  • trunk/Source/WebCore/platform/spi/cg/CoreGraphicsSPI.h

    r191634 r195979  
    3030#include <CoreGraphics/CoreGraphics.h>
    3131
     32#if USE(IOSURFACE)
     33#include "IOSurfaceSPI.h"
     34#endif
     35
    3236#if USE(APPLE_INTERNAL_SDK)
    3337
     
    3640
    3741#else
     42
    3843struct CGFontHMetrics {
    3944    int ascent;
     
    166171void CGContextSetFontAntialiasingStyle(CGContextRef, CGFontAntialiasingStyle);
    167172
     173#if USE(IOSURFACE)
     174CGContextRef CGIOSurfaceContextCreate(IOSurfaceRef, size_t, size_t, size_t, size_t, CGColorSpaceRef, CGBitmapInfo);
     175CGImageRef CGIOSurfaceContextCreateImage(CGContextRef);
     176CGImageRef CGIOSurfaceContextCreateImageReference(CGContextRef);
     177#endif
     178
    168179#if PLATFORM(COCOA)
    169180CGSRegionEnumeratorObj CGSRegionEnumerator(CGRegionRef);
Note: See TracChangeset for help on using the changeset viewer.