summaryrefslogtreecommitdiffstats
path: root/chrome/renderer/webplugin_delegate_pepper.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/renderer/webplugin_delegate_pepper.cc')
-rw-r--r--chrome/renderer/webplugin_delegate_pepper.cc6
1 files changed, 2 insertions, 4 deletions
diff --git a/chrome/renderer/webplugin_delegate_pepper.cc b/chrome/renderer/webplugin_delegate_pepper.cc
index 46ef954..9d8d651 100644
--- a/chrome/renderer/webplugin_delegate_pepper.cc
+++ b/chrome/renderer/webplugin_delegate_pepper.cc
@@ -265,8 +265,7 @@ void WebPluginDelegatePepper::UpdateGeometry(
// can allocate a new backing store. The handle to the new backing
// store is sent back to the browser asynchronously.
if (command_buffer_) {
- command_buffer_->SetWindowSize(window_rect_.width(),
- window_rect_.height());
+ command_buffer_->SetWindowSize(window_rect_.size());
}
#endif // OS_MACOSX
#endif // ENABLE_GPU
@@ -721,8 +720,7 @@ NPError WebPluginDelegatePepper::Device3DInitializeContext(
// Ensure the service knows the window size before rendering anything.
nested_delegate_->UpdateGeometry(window_rect_, clip_rect_);
#if defined(OS_MACOSX)
- command_buffer_->SetWindowSize(window_rect_.width(),
- window_rect_.height());
+ command_buffer_->SetWindowSize(window_rect_.size());
#endif // OS_MACOSX
// Make sure the nested delegate shows up in the right place