Skip to content

Commit

Permalink
Finish making shell/platform/android/... compatible with `.clang-ti…
Browse files Browse the repository at this point in the history
…dy`. (flutter#48296)
  • Loading branch information
matanlurey authored Nov 21, 2023
1 parent 4a0225a commit 94655a2
Show file tree
Hide file tree
Showing 8 changed files with 7 additions and 10 deletions.
1 change: 0 additions & 1 deletion shell/platform/android/android_context_gl_skia.cc
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,6 @@ AndroidContextGLSkia::AndroidContextGLSkia(
uint8_t msaa_samples)
: AndroidContext(AndroidRenderingAPI::kOpenGLES),
environment_(std::move(environment)),
config_(nullptr),
task_runners_(task_runners) {
if (!environment_->IsValid()) {
FML_LOG(ERROR) << "Could not create an Android GL environment.";
Expand Down
2 changes: 1 addition & 1 deletion shell/platform/android/android_display.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ namespace flutter {
/// A |Display| that listens to refresh rate changes.
class AndroidDisplay : public Display {
public:
AndroidDisplay(std::shared_ptr<PlatformViewAndroidJNI> jni_facade);
explicit AndroidDisplay(std::shared_ptr<PlatformViewAndroidJNI> jni_facade);
~AndroidDisplay() = default;

// |Display|
Expand Down
3 changes: 1 addition & 2 deletions shell/platform/android/android_egl_surface.cc
Original file line number Diff line number Diff line change
Expand Up @@ -87,8 +87,7 @@ AndroidEGLSurface::AndroidEGLSurface(EGLSurface surface,
: surface_(surface),
display_(display),
context_(context),
damage_(std::make_unique<AndroidEGLSurfaceDamage>()),
presentation_time_proc_(nullptr) {
damage_(std::make_unique<AndroidEGLSurfaceDamage>()) {
damage_->init(display_, context);
}

Expand Down
2 changes: 1 addition & 1 deletion shell/platform/android/android_egl_surface.h
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ class AndroidEGLSurface {
const EGLDisplay display_;
const EGLContext context_;
std::unique_ptr<AndroidEGLSurfaceDamage> damage_;
PFNEGLPRESENTATIONTIMEANDROIDPROC presentation_time_proc_;
PFNEGLPRESENTATIONTIMEANDROIDPROC presentation_time_proc_ = nullptr;
};

} // namespace flutter
Expand Down
3 changes: 1 addition & 2 deletions shell/platform/android/android_environment_gl.cc
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@

namespace flutter {

AndroidEnvironmentGL::AndroidEnvironmentGL()
: display_(EGL_NO_DISPLAY), valid_(false) {
AndroidEnvironmentGL::AndroidEnvironmentGL() : display_(EGL_NO_DISPLAY) {
// Get the display.
display_ = eglGetDisplay(EGL_DEFAULT_DISPLAY);

Expand Down
2 changes: 1 addition & 1 deletion shell/platform/android/android_environment_gl.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ class AndroidEnvironmentGL

private:
EGLDisplay display_;
bool valid_;
bool valid_ = false;

FML_FRIEND_MAKE_REF_COUNTED(AndroidEnvironmentGL);
FML_FRIEND_REF_COUNTED_THREAD_SAFE(AndroidEnvironmentGL);
Expand Down
2 changes: 1 addition & 1 deletion shell/platform/android/flutter_main.cc
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ fml::jni::ScopedJavaGlobalRef<jclass>* g_flutter_jni_class = nullptr;
} // anonymous namespace

FlutterMain::FlutterMain(const flutter::Settings& settings)
: settings_(settings), vm_service_uri_callback_() {}
: settings_(settings) {}

FlutterMain::~FlutterMain() = default;

Expand Down
2 changes: 1 addition & 1 deletion shell/platform/android/flutter_main.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ class FlutterMain {

private:
const flutter::Settings settings_;
DartServiceIsolate::CallbackHandle vm_service_uri_callback_;
DartServiceIsolate::CallbackHandle vm_service_uri_callback_ = 0;

explicit FlutterMain(const flutter::Settings& settings);

Expand Down

0 comments on commit 94655a2

Please sign in to comment.