mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
34 lines
730 B
Plaintext
34 lines
730 B
Plaintext
// Copyright 2016 The Chromium Authors. All rights reserved.
|
|
// Use of this source code is governed by a BSD-style license that can be
|
|
// found in the LICENSE file.
|
|
|
|
#include "sky/shell/platform/ios/FlutterView.h"
|
|
|
|
@interface FlutterView ()<UIInputViewAudioFeedback>
|
|
|
|
@end
|
|
|
|
@implementation FlutterView
|
|
|
|
- (void)layoutSubviews {
|
|
CGFloat screenScale = [UIScreen mainScreen].scale;
|
|
CAEAGLLayer* layer = reinterpret_cast<CAEAGLLayer*>(self.layer);
|
|
|
|
layer.allowsGroupOpacity = YES;
|
|
layer.opaque = YES;
|
|
layer.contentsScale = screenScale;
|
|
layer.rasterizationScale = screenScale;
|
|
|
|
[super layoutSubviews];
|
|
}
|
|
|
|
+ (Class)layerClass {
|
|
return [CAEAGLLayer class];
|
|
}
|
|
|
|
- (BOOL)enableInputClicksWhenVisible {
|
|
return YES;
|
|
}
|
|
|
|
@end
|