Skip to content

Commit

Permalink
Remove unnecessary WebGraphicsContext3D::reshape.. call from TestPlugin
Browse files Browse the repository at this point in the history
WebGraphicsContext3D::reshape..() resizes the default backbuffer, but the
TestPlugin doesn't use the default backbuffer so this call is a no-op.

BUG=181120

Review URL: https://codereview.chromium.org/137613002

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@245124 0039d316-1c4b-4281-b951-d872f2087c98
  • Loading branch information
jamesr@chromium.org committed Jan 16, 2014
1 parent bf8bc02 commit b5ec153
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion content/shell/renderer/test_runner/TestPlugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,6 @@ void TestPlugin::updateGeometry(const WebRect& frameRect, const WebRect& clipRec
if (m_rect.isEmpty())
return;

m_context->reshapeWithScaleFactor(m_rect.width, m_rect.height, 1.f);
m_context->viewport(0, 0, m_rect.width, m_rect.height);

m_context->bindTexture(GL_TEXTURE_2D, m_colorTexture);
Expand Down

0 comments on commit b5ec153

Please sign in to comment.