Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1762)

Unified Diff: content/renderer/browser_plugin/browser_plugin.cc

Issue 11828005: Fixing resize for HW accelerated compositing. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 7 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: content/renderer/browser_plugin/browser_plugin.cc
diff --git a/content/renderer/browser_plugin/browser_plugin.cc b/content/renderer/browser_plugin/browser_plugin.cc
index 75af8912790bcf84ebd5744dde7711472fb41a1a..75f6dbeb49903438720ce468eb1c7f6c4666d29e 100644
--- a/content/renderer/browser_plugin/browser_plugin.cc
+++ b/content/renderer/browser_plugin/browser_plugin.cc
@@ -428,6 +428,13 @@ void BrowserPlugin::OnUpdateRect(
(width() != params.view_size.width() ||
height() != params.view_size.height())) ||
(auto_size_ && (!InAutoSizeBounds(params.view_size)))) {
Cris Neckar 2013/01/08 23:22:35 Not part of your CL but it feels like InAutoSizeBo
+ // We are HW accelerated, render widget does not expect an ack,
+ // but we still need to update the size.
+ if (!params.needs_ack) {
+ UpdateGuestAutoSizeState();
+ return;
+ }
+
if (!resize_ack_received_) {
// The guest has not yet responded to the last resize request, and
// so we don't want to do anything at this point other than ACK the guest.

Powered by Google App Engine
This is Rietveld 408576698