Currently, texture id is not initialized for a new RWHV. So, when we
navigate to a new page, a draw attempt is made for an undefined texture
and hence we see the black screen. With this patch, we draw only when
the texture is valid.
Bug: http://168.219.209.56/jira/browse/TNEF-166
Reviewed by: Siba Samal, venu musham
Change-Id: I19665a4fa6252d86364b2fc4e4ea484d78a551cf
Signed-off-by: uzair.jaleel <uzair.jaleel@samsung.com>
egl_image_(NULL),
current_pixmap_id_(0),
next_pixmap_id_(0),
+ texture_id_(0),
surface_id_(0),
should_restore_selection_menu_(false),
selection_acked_on_tap_(false),
void RenderWidgetHostViewEfl::EvasObjectImagePixelsGetCallback(void* data, Evas_Object* obj) {
RenderWidgetHostViewEfl* rwhv_efl = reinterpret_cast<RenderWidgetHostViewEfl*>(data);
- rwhv_efl->PaintTextureToSurface(rwhv_efl->texture_id_);
+ if (rwhv_efl->texture_id_)
+ rwhv_efl->PaintTextureToSurface(rwhv_efl->texture_id_);
}
void RenderWidgetHostViewEfl::Init_EvasGL(int width, int height) {