diff options
author | danakj@chromium.org <danakj@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-05-13 01:24:42 +0000 |
---|---|---|
committer | danakj@chromium.org <danakj@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-05-13 01:24:42 +0000 |
commit | 61f9183264c41c4689a077621f60b8765a107acf (patch) | |
tree | a585101824e652fc597661180175207d4f3f484c /apps/ui/views | |
parent | d86d3fe733d60c3550e1154bce62fb43e17b77ae (diff) | |
download | chromium_src-61f9183264c41c4689a077621f60b8765a107acf.zip chromium_src-61f9183264c41c4689a077621f60b8765a107acf.tar.gz chromium_src-61f9183264c41c4689a077621f60b8765a107acf.tar.bz2 |
Remove RenderWidget::SetBackground, change IPC to pass a bool.
The ViewMsg_SetBackground message currently passes an SkBitmap that
signals if the RenderView should have an opaque background or not. We
can use a bool instead to convey this data.
Rename the ViewMsg_SetBackground to ViewMsg_SetBackgroundOpaque as well
as the Set/GetBackground methods on the various RenderWidget/View
classes.
RenderWidget itself no longer needs to know about the background opaque
changes.
R=kenrb, piman
BUG=362164
Review URL: https://codereview.chromium.org/274453002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@269953 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'apps/ui/views')
-rw-r--r-- | apps/ui/views/native_app_window_views.cc | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/apps/ui/views/native_app_window_views.cc b/apps/ui/views/native_app_window_views.cc index 22c384e..7784cca 100644 --- a/apps/ui/views/native_app_window_views.cc +++ b/apps/ui/views/native_app_window_views.cc @@ -262,15 +262,9 @@ void NativeAppWindowViews::OnWidgetActivationChanged(views::Widget* widget, void NativeAppWindowViews::RenderViewCreated( content::RenderViewHost* render_view_host) { if (transparent_background_) { - // Use a background with transparency to trigger transparency in Webkit. - SkBitmap background; - background.setConfig(SkBitmap::kARGB_8888_Config, 1, 1); - background.allocPixels(); - background.eraseARGB(0x00, 0x00, 0x00, 0x00); - content::RenderWidgetHostView* view = render_view_host->GetView(); DCHECK(view); - view->SetBackground(background); + view->SetBackgroundOpaque(false); } } |