diff options
author | backer@chromium.org <backer@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-01-25 17:30:07 +0000 |
---|---|---|
committer | backer@chromium.org <backer@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-01-25 17:30:07 +0000 |
commit | 1cda0485d4adf8cbb159db0514c365e374794509 (patch) | |
tree | 7d04da6bd7215f71fe420c8e4da4f0ab72647b16 /webkit/gpu | |
parent | 64b3d13e30dbefe70e32b3fb5d7b95e28a1100d7 (diff) | |
download | chromium_src-1cda0485d4adf8cbb159db0514c365e374794509.zip chromium_src-1cda0485d4adf8cbb159db0514c365e374794509.tar.gz chromium_src-1cda0485d4adf8cbb159db0514c365e374794509.tar.bz2 |
Stronger synchronization for resize on osmesa.
We need to synchronize resize with when the renderer thinks that the resize occurs. This patch get's rid of display artifacts when resizing window on http://webkit.org/blog-files/3d-transforms/poster-circle.html when running with --use-gl=osmesa on linux.
BUG=none
TEST=see description
Review URL: http://codereview.chromium.org/9212058
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@119082 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/gpu')
-rw-r--r-- | webkit/gpu/webgraphicscontext3d_in_process_impl.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/webkit/gpu/webgraphicscontext3d_in_process_impl.cc b/webkit/gpu/webgraphicscontext3d_in_process_impl.cc index 548cf4d..16f4fb9 100644 --- a/webkit/gpu/webgraphicscontext3d_in_process_impl.cc +++ b/webkit/gpu/webgraphicscontext3d_in_process_impl.cc @@ -1,4 +1,4 @@ -// Copyright (c) 2011 The Chromium Authors. All rights reserved. +// Copyright (c) 2012 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. @@ -361,6 +361,7 @@ void WebGraphicsContext3DInProcessImpl::reshape(int width, int height) { if (window_ == gfx::kNullPluginWindow) must_restore_fbo = AllocateOffscreenFrameBuffer(width, height); + gl_surface_->Resize(gfx::Size(width, height)); ClearRenderTarget(); if (must_restore_fbo) |