GL_CHECK_STATUS("GL error before texture paint.");
gfx::Rect bounds = GetViewBoundsInPix();
- GL_CHECK(gl_api->glViewport(0, 0, bounds.width(), bounds.height()));
+ gfx::Size surface = surface_size_;
+ GL_CHECK(gl_api->glViewport(0, bounds.height() - surface.height(), surface.width(), surface.height()));
GL_CHECK(gl_api->glClearColor(1.0, 1.0, 1.0, 1.0));
GL_CHECK(gl_api->glClear(GL_COLOR_BUFFER_BIT));
GL_CHECK(gl_api->glUseProgram(program_id_));
// those frames black screen will appear.
if (frame->gl_frame_data) {
ack.gl_frame_data = frame->gl_frame_data.Pass();
-
+ surface_size_ = ack.gl_frame_data->size;
if (evas_gl_initialized_) {
std::swap(ack.gl_frame_data->mailbox, pending_mailbox_);
gpu::gles2::MailboxManager* manager =