Index: content/browser/browser_plugin/browser_plugin_guest.cc |
diff --git a/content/browser/browser_plugin/browser_plugin_guest.cc b/content/browser/browser_plugin/browser_plugin_guest.cc |
index eddc9258bfaddd0b9b3737e6d7ea21f671e6d720..64deecbecbc2475614c7996ba361e7a7f0b6c615 100644 |
--- a/content/browser/browser_plugin/browser_plugin_guest.cc |
+++ b/content/browser/browser_plugin/browser_plugin_guest.cc |
@@ -1368,14 +1368,7 @@ void BrowserPluginGuest::OnSetEditCommandsForNextKeyEvent( |
void BrowserPluginGuest::OnSetContentsOpaque(int instance_id, bool opaque) { |
guest_opaque_ = opaque; |
- |
- SkBitmap background; |
- if (!guest_opaque_) { |
- background.setConfig(SkBitmap::kARGB_8888_Config, 1, 1); |
- unsigned int color = 0; |
- background.setPixels(&color); |
- } |
- Send(new ViewMsg_SetBackground(routing_id(), background)); |
+ Send(new ViewMsg_SetBackgroundOpaque(routing_id(), guest_opaque_)); |
} |
void BrowserPluginGuest::OnSetVisibility(int instance_id, bool visible) { |