Skip to content

Commit

Permalink
Revert bypasses (alpha 2)
Browse files Browse the repository at this point in the history
  • Loading branch information
Matthew Benedict committed Apr 9, 2023
1 parent 1f41feb commit b0e06f0
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -672,10 +672,6 @@ static bool needsEAGLOnMac()
#if !PLATFORM(IOS_FAMILY_SIMULATOR)
GraphicsContextGLCocoa::IOSurfaceTextureAttachment GraphicsContextGLCocoa::attachIOSurfaceToSharedTexture(GCGLenum target, IOSurface* surface)
{
#if 1
NSLog(@"%u %p", target, surface);
return std::nullopt;
#else
constexpr EGLint emptyAttributes[] = { EGL_NONE };

// Create a MTLTexture out of the IOSurface.
Expand Down Expand Up @@ -715,7 +711,6 @@ static bool needsEAGLOnMac()
GL_EGLImageTargetTexture2DOES(target, eglImage);

return std::make_tuple(eglImage, textureWidth, textureHeight);
#endif
}

void GraphicsContextGLCocoa::detachIOSurfaceFromSharedTexture(void* handle)
Expand Down
2 changes: 1 addition & 1 deletion Tools/MobileMiniBrowser/MobileMiniBrowser/main.m
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@

int main(int argc, char * argv[])
{
//[WKProcessPool _setLinkedOnOrAfterEverythingForTesting];
[WKProcessPool _setLinkedOnOrAfterEverythingForTesting];

@autoreleasepool {
return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class]));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -197,12 +197,10 @@ - (WKWebView *)createWebView
WKWebViewConfiguration *configuration = [[WKWebViewConfiguration alloc] init];

configuration.preferences._mockCaptureDevicesEnabled = YES;
if (@available(iOS 15.4, *)) {
configuration.preferences.elementFullscreenEnabled = YES;
}
configuration.preferences.elementFullscreenEnabled = YES;

WKWebView *webView = [[WKWebView alloc] initWithFrame:self.webViewContainer.bounds configuration:configuration];
//webView.inspectable = YES;
webView.inspectable = YES;
webView.navigationDelegate = self;
webView.autoresizingMask = UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleHeight;
[webView addObserver:self forKeyPath:@"title" options:NSKeyValueObservingOptionNew context:TitleContext];
Expand Down

0 comments on commit b0e06f0

Please sign in to comment.