未验证 提交 9b317179 编写于 作者: S Sigurd Meldgaard 提交者: GitHub

Avoid double retain of Texture on ios. (#4354)

The "raw" pointer is already managed by ARC.
上级 25912b84
......@@ -7,7 +7,6 @@
#include "flutter/flow/texture.h"
#include "flutter/fml/platform/darwin/cf_utils.h"
#include "flutter/fml/platform/darwin/scoped_nsobject.h"
#include "flutter/shell/platform/darwin/ios/framework/Headers/FlutterTexture.h"
namespace shell {
......@@ -27,7 +26,7 @@ class IOSExternalTextureGL : public flow::Texture {
virtual void OnGrContextDestroyed() override;
private:
fml::scoped_nsobject<NSObject<FlutterTexture>> external_texture_;
NSObject<FlutterTexture>* external_texture_;
fml::CFRef<CVOpenGLESTextureCacheRef> cache_ref_;
fml::CFRef<CVOpenGLESTextureRef> texture_ref_;
FXL_DISALLOW_COPY_AND_ASSIGN(IOSExternalTextureGL);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册