summaryrefslogtreecommitdiffstats
path: root/webkit/glue/plugins
diff options
context:
space:
mode:
authorjam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-11-16 00:48:20 +0000
committerjam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-11-16 00:48:20 +0000
commit2e28eb55c920472ec33182561aae558ae4bcefc7 (patch)
tree549dd89d497759a25052219b6b1a8a67736c5ead /webkit/glue/plugins
parent03c79d5060fd71b50bf80ecd0ddce71c2c80f298 (diff)
downloadchromium_src-2e28eb55c920472ec33182561aae558ae4bcefc7.zip
chromium_src-2e28eb55c920472ec33182561aae558ae4bcefc7.tar.gz
chromium_src-2e28eb55c920472ec33182561aae558ae4bcefc7.tar.bz2
Fix flickering when resizing pepper plugins.
BUG=63252 Review URL: http://codereview.chromium.org/5046001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@66205 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/glue/plugins')
-rw-r--r--webkit/glue/plugins/pepper_plugin_instance.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/webkit/glue/plugins/pepper_plugin_instance.cc b/webkit/glue/plugins/pepper_plugin_instance.cc
index 47ea900..b4cd681 100644
--- a/webkit/glue/plugins/pepper_plugin_instance.cc
+++ b/webkit/glue/plugins/pepper_plugin_instance.cc
@@ -437,7 +437,6 @@ bool PluginInstance::BindGraphics(PP_Resource graphics_id) {
if (graphics_2d) {
if (!graphics_2d->BindToInstance(this))
return false; // Can't bind to more than one instance.
- bound_graphics_ = graphics_2d;
// See http://crbug.com/49403: this can be further optimized by keeping the
// old device around and painting from it.
@@ -458,6 +457,7 @@ bool PluginInstance::BindGraphics(PP_Resource graphics_id) {
canvas.drawARGB(255, 255, 255, 255);
}
+ bound_graphics_ = graphics_2d;
// BindToInstance will have invalidated the plugin if necessary.
} else if (graphics_3d) {
if (!graphics_3d->BindToInstance(this))