2016-03-10 12:23:59 -08:00

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