Mac: Shift more code into C++ classes from ObjC classes
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
Showing
This diff is collapsed.
Please register or sign in to comment