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

Unified Diff: content/browser/browser_plugin/browser_plugin_guest.cc

Issue 274453002: Remove RenderWidget::SetBackground, change IPC to pass a bool. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 7 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/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) {

Powered by Google App Engine
This is Rietveld 408576698