Chromium Code Reviews| Index: chrome/renderer/webplugin_delegate_proxy.cc |
| =================================================================== |
| --- chrome/renderer/webplugin_delegate_proxy.cc (revision 69787) |
| +++ chrome/renderer/webplugin_delegate_proxy.cc (working copy) |
| @@ -21,7 +21,6 @@ |
| #include "base/sys_info.h" |
| #include "base/utf_string_conversions.h" |
| #include "chrome/common/child_process_logging.h" |
| -#include "chrome/common/chrome_switches.h" |
| #include "chrome/common/plugin_messages.h" |
| #include "chrome/common/render_messages.h" |
| #include "chrome/plugin/npobject_proxy.h" |
| @@ -518,10 +517,10 @@ |
| #endif |
| if (uses_shared_bitmaps_) { |
| + SkDevice* device = backing_store_canvas_->getDevice(); |
|
James Hawkins
2010/12/22 21:54:36
Please don't add unrelated changes like this to th
Lei Zhang
2011/01/08 01:51:36
Ok.
|
| if (!backing_store_canvas_.get() || |
| - (window_rect.width() != backing_store_canvas_->getDevice()->width() || |
| - window_rect.height() != backing_store_canvas_->getDevice()->height())) |
| - { |
| + (window_rect.width() != device->width() || |
| + window_rect.height() != device->height())) { |
| bitmaps_changed = true; |
| bool needs_background_store = transparent_; |
| @@ -1564,4 +1563,3 @@ |
| plugin_->URLRedirectResponse(allow, resource_id); |
| } |
| - |