Changeset 159254 in webkit


Ignore:
Timestamp:
Nov 13, 2013 3:53:04 PM (11 years ago)
Author:
Simon Fraser
Message:

Expose a private flag on WKView to indicate whether it's using a remote layer tree drawing area
https://bugs.webkit.org/show_bug.cgi?id=124317

Reviewed by Anders Carlsson.

Expose isUsingUISideCompositing on WKView in the private header,
which returns YES if the view is using a DrawingAreaTypeRemoteLayerTree.

  • UIProcess/API/mac/WKView.mm:

(-[WKView isUsingUISideCompositing]):

  • UIProcess/API/mac/WKViewPrivate.h:
Location:
trunk/Source/WebKit2
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit2/ChangeLog

    r159253 r159254  
     12013-11-13  Simon Fraser  <simon.fraser@apple.com>
     2
     3        Expose a private flag on WKView to indicate whether it's using a remote layer tree drawing area
     4        https://bugs.webkit.org/show_bug.cgi?id=124317
     5
     6        Reviewed by Anders Carlsson.
     7       
     8        Expose isUsingUISideCompositing on WKView in the private header,
     9        which returns YES if the view is using a DrawingAreaTypeRemoteLayerTree.
     10
     11        * UIProcess/API/mac/WKView.mm:
     12        (-[WKView isUsingUISideCompositing]):
     13        * UIProcess/API/mac/WKViewPrivate.h:
     14
    1152013-11-13  Csaba Osztrogonác  <ossy@webkit.org>
    216
  • trunk/Source/WebKit2/UIProcess/API/mac/WKView.mm

    r159001 r159254  
    32423242}
    32433243
     3244- (BOOL)isUsingUISideCompositing
     3245{
     3246    if (DrawingAreaProxy* drawingArea = _data->_page->drawingArea())
     3247        return drawingArea->type() == DrawingAreaTypeRemoteLayerTree;
     3248
     3249    return NO;
     3250}
     3251
    32443252@end
    32453253
  • trunk/Source/WebKit2/UIProcess/API/mac/WKViewPrivate.h

    r157681 r159254  
    6565@property (readwrite) BOOL shouldClipToVisibleRect;
    6666@property (readwrite) BOOL shouldExpandToViewHeightForAutoLayout;
     67@property (readonly) BOOL isUsingUISideCompositing;
    6768
    6869@property(copy, nonatomic) NSColor *underlayColor;
Note: See TracChangeset for help on using the changeset viewer.