mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
Fix clang_tidy lints (flutter/engine#44740)
This commit is contained in:
parent
fdd3eaf715
commit
7bf371d161
@ -24,9 +24,9 @@ namespace flutter {
|
||||
SurfaceTextureExternalTexture::SurfaceTextureExternalTexture(
|
||||
int64_t id,
|
||||
const fml::jni::ScopedJavaGlobalRef<jobject>& surface_texture,
|
||||
std::shared_ptr<PlatformViewAndroidJNI> jni_facade)
|
||||
const std::shared_ptr<PlatformViewAndroidJNI>& jni_facade)
|
||||
: Texture(id),
|
||||
jni_facade_(std::move(jni_facade)),
|
||||
jni_facade_(jni_facade),
|
||||
surface_texture_(surface_texture),
|
||||
transform_(SkMatrix::I()) {}
|
||||
|
||||
|
||||
@ -18,7 +18,7 @@ class SurfaceTextureExternalTexture : public flutter::Texture {
|
||||
SurfaceTextureExternalTexture(
|
||||
int64_t id,
|
||||
const fml::jni::ScopedJavaGlobalRef<jobject>& surface_texture,
|
||||
std::shared_ptr<PlatformViewAndroidJNI> jni_facade);
|
||||
const std::shared_ptr<PlatformViewAndroidJNI>& jni_facade);
|
||||
|
||||
~SurfaceTextureExternalTexture() override;
|
||||
|
||||
|
||||
@ -24,11 +24,13 @@ namespace flutter {
|
||||
SurfaceTextureExternalTextureGL::SurfaceTextureExternalTextureGL(
|
||||
int64_t id,
|
||||
const fml::jni::ScopedJavaGlobalRef<jobject>& surface_texture,
|
||||
std::shared_ptr<PlatformViewAndroidJNI> jni_facade)
|
||||
const std::shared_ptr<PlatformViewAndroidJNI>& jni_facade)
|
||||
: SurfaceTextureExternalTexture(id, surface_texture, jni_facade) {}
|
||||
|
||||
SurfaceTextureExternalTextureGL::~SurfaceTextureExternalTextureGL() {
|
||||
Detach();
|
||||
if (texture_name_ != 0) {
|
||||
glDeleteTextures(1, &texture_name_);
|
||||
}
|
||||
}
|
||||
|
||||
void SurfaceTextureExternalTextureGL::ProcessFrame(PaintContext& context,
|
||||
@ -66,14 +68,12 @@ SurfaceTextureExternalTextureImpellerGL::
|
||||
const std::shared_ptr<impeller::ContextGLES>& context,
|
||||
int64_t id,
|
||||
const fml::jni::ScopedJavaGlobalRef<jobject>& surface_texture,
|
||||
std::shared_ptr<PlatformViewAndroidJNI> jni_facade)
|
||||
const std::shared_ptr<PlatformViewAndroidJNI>& jni_facade)
|
||||
: SurfaceTextureExternalTexture(id, surface_texture, jni_facade),
|
||||
impeller_context_(context) {}
|
||||
|
||||
SurfaceTextureExternalTextureImpellerGL::
|
||||
~SurfaceTextureExternalTextureImpellerGL() {
|
||||
Detach();
|
||||
}
|
||||
~SurfaceTextureExternalTextureImpellerGL() {}
|
||||
|
||||
void SurfaceTextureExternalTextureImpellerGL::ProcessFrame(
|
||||
PaintContext& context,
|
||||
|
||||
@ -23,7 +23,7 @@ class SurfaceTextureExternalTextureGL : public SurfaceTextureExternalTexture {
|
||||
SurfaceTextureExternalTextureGL(
|
||||
int64_t id,
|
||||
const fml::jni::ScopedJavaGlobalRef<jobject>& surface_texture,
|
||||
std::shared_ptr<PlatformViewAndroidJNI> jni_facade);
|
||||
const std::shared_ptr<PlatformViewAndroidJNI>& jni_facade);
|
||||
|
||||
~SurfaceTextureExternalTextureGL() override;
|
||||
|
||||
@ -44,7 +44,7 @@ class SurfaceTextureExternalTextureImpellerGL
|
||||
const std::shared_ptr<impeller::ContextGLES>& context,
|
||||
int64_t id,
|
||||
const fml::jni::ScopedJavaGlobalRef<jobject>& surface_texture,
|
||||
std::shared_ptr<PlatformViewAndroidJNI> jni_facade);
|
||||
const std::shared_ptr<PlatformViewAndroidJNI>& jni_facade);
|
||||
|
||||
~SurfaceTextureExternalTextureImpellerGL() override;
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user