Changeset View
Changeset View
Standalone View
Standalone View
head/www/firefox/files/patch-bug1527804
Show First 20 Lines • Show All 90 Lines • ▼ Show 20 Lines | @@ -77,8 +78,8 @@ struct _MozContainer { | ||||
struct wl_callback *frame_callback_handler; | struct wl_callback *frame_callback_handler; | ||||
gboolean surface_needs_clear; | gboolean surface_needs_clear; | ||||
- gboolean egl_surface_needs_update; | - gboolean egl_surface_needs_update; | ||||
gboolean ready_to_draw; | gboolean ready_to_draw; | ||||
+ std::function<void(void)> inital_draw_cb; | + std::function<void(void)> inital_draw_cb; | ||||
#endif | #endif | ||||
gboolean force_default_visual; | gboolean force_default_visual; | ||||
}; | }; | ||||
@@ -97,7 +98,9 @@ struct wl_egl_window *moz_container_get_wl_egl_window( | @@ -101,7 +102,9 @@ gboolean moz_container_has_wl_egl_window(MozContainer *container); | ||||
gboolean moz_container_has_wl_egl_window(MozContainer *container); | |||||
gboolean moz_container_surface_needs_clear(MozContainer *container); | gboolean moz_container_surface_needs_clear(MozContainer *container); | ||||
void moz_container_scale_changed(MozContainer *container, | |||||
GtkAllocation *aAllocation); | |||||
-gboolean moz_container_egl_surface_needs_update(MozContainer *container); | -gboolean moz_container_egl_surface_needs_update(MozContainer *container); | ||||
+void moz_container_set_initial_draw_callback( | +void moz_container_set_initial_draw_callback( | ||||
+ MozContainer *container, | + MozContainer *container, | ||||
+ std::function<void(void)> inital_draw_cb); | + std::function<void(void)> inital_draw_cb); | ||||
#endif | #endif | ||||
#endif /* __MOZ_CONTAINER_H__ */ | #endif /* __MOZ_CONTAINER_H__ */ | ||||
diff --git widget/gtk/nsWindow.cpp widget/gtk/nsWindow.cpp | diff --git widget/gtk/nsWindow.cpp widget/gtk/nsWindow.cpp | ||||
▲ Show 20 Lines • Show All 108 Lines • Show Last 20 Lines |