#if USE(ACCELERATED_COMPOSITING)
bool BaseLayerAndroid::drawBasePictureInGL(SkRect& viewport, float scale)
{
- if (m_content.isEmpty())
- return false;
if (!m_glWebViewState)
return false;
XLOG("drawBasePicture drawGL() viewRect: %d, %d, %d, %d",
left, top, width, height);
- glEnable(GL_SCISSOR_TEST);
-
- glScissor(left, top, width, height);
glClearColor((float)m_color.red() / 255.0,
(float)m_color.green() / 255.0,
(float)m_color.blue() / 255.0, 1);
} else {
TilesManager::instance()->cleanupLayersTextures(0);
}
- glDisable(GL_SCISSOR_TEST);
glBindBuffer(GL_ARRAY_BUFFER, 0);
m_previousVisible = visibleRect;