Source/WebCore/platform/graphics/chromium/LayerRendererChromium.cpp
void LayerRendererChromium::setDrawViewportRect(const IntRect& drawRect, bool flipY)
{
    if (flipY)
        m_projectionMatrix = orthoMatrix(drawRect.x(), drawRect.maxX(), drawRect.maxY(), drawRect.y());
    else
        m_projectionMatrix = orthoMatrix(drawRect.x(), drawRect.maxX(), drawRect.y(), drawRect.maxY());
    GLC(m_context.get(), m_context->viewport(0, 0, drawRect.width(), drawRect.height()));
}
// Sets the coordinate range of content that ends being drawn onto the target render surface.
// The target render surface is assumed to have an origin at 0, 0 and the width and height of
// of the drawRect.
Sets the coordinate range of content that ends being drawn onto the target render surface.
The target render surface is assumed to have an origin at 0, 0 and the width and height of
of the drawRect.
Sets the coordinate range of content that ends being drawn onto the target render surface . The target render surface is assumed to have an origin at 0 0 and the width and height of of the drawRect .
void LayerRendererChromium::setDrawViewportRect(const IntRect& drawRect, bool flipY)
{
    if (flipY)
        m_projectionMatrix = orthoMatrix(drawRect.x(), drawRect.maxX(), drawRect.maxY(), drawRect.y());
    else
        m_projectionMatrix = orthoMatrix(drawRect.x(), drawRect.maxX(), drawRect.y(), drawRect.maxY());
    GLC(m_context.get(), m_context->viewport(0, 0, drawRect.width(), drawRect.height()));
}
void LayerRendererChromium :: setDrawViewportRect ( const IntRect & drawRect , bool flipY ) { if ( flipY ) m_projectionMatrix = orthoMatrix ( drawRect . x ( ) , drawRect . maxX ( ) , drawRect . maxY ( ) , drawRect . y ( ) ) ; else m_projectionMatrix = orthoMatrix ( drawRect . x ( ) , drawRect . maxX ( ) , drawRect . y ( ) , drawRect . maxY ( ) ) ; GLC ( m_context . get ( ) , m_context -> viewport ( 0 , 0 , drawRect . width ( ) , drawRect . height ( ) ) ) ; }
Sets the coordinate range of content that ends being drawn onto the target render surface.
Sets the coordinate range of content that ends being drawn onto the target render surface .