• ccameron@chromium.org's avatar
    Mac: Shift more code into C++ classes from ObjC classes · 119ac96a
    ccameron@chromium.org authored
    It is difficult to reason about the liftime of ObjC classes, especially
    NSViews and CALayers. To simplify verifying their correctness, move the
    bulk of the code for the ObjC classes into C++ helper classes (these
    classes are already necessary to interface with owning structures).
    
    Make the NSView sub-class BrowserCompositorViewCocoa be owned by
    BrowserCompositorViewMacInternal.
    
    Move the bulk of the work in CompositingIOSurfaceLayer to be done by
    CompositingIOSurfaceLayerHelper, and mark that the ownership
    relationship should be inverted (that isn't feasible at the moment
    because we are mid-transition from non-delegated rendering to delegated
    rendering).
    
    BUG=392919
    
    Review URL: https://codereview.chromium.org/394883007
    
    git-svn-id: svn://svn.chromium.org/chrome/trunk/src@284063 0039d316-1c4b-4281-b951-d872f2087c98
    119ac96a
compositing_iosurface_layer_mac.mm 7.91 KB