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

Unified Diff: chromecast/browser/android/cast_window_android.cc

Issue 934433003: Fix for white screen when casting on Android. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Merge/update to latest Created 5 years, 10 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chromecast/browser/android/cast_window_android.cc
diff --git a/chromecast/browser/android/cast_window_android.cc b/chromecast/browser/android/cast_window_android.cc
index 0d78ceb3da9ba5bc8ac6ac6b858821603d02a055..c95bd375a5de3db92923c43158a985e0e91c04eb 100644
--- a/chromecast/browser/android/cast_window_android.cc
+++ b/chromecast/browser/android/cast_window_android.cc
@@ -12,8 +12,10 @@
#include "content/public/browser/navigation_entry.h"
#include "content/public/browser/render_process_host.h"
#include "content/public/browser/render_view_host.h"
+#include "content/public/browser/render_widget_host_view.h"
#include "content/public/common/renderer_preferences.h"
#include "jni/CastWindowAndroid_jni.h"
+#include "ui/gfx/skia_util.h"
namespace chromecast {
namespace shell {
@@ -40,6 +42,13 @@ CastWindowAndroid* CastWindowAndroid::CreateNewWindow(
if (!url.is_empty())
window_android->LoadURL(url);
+
+ content::RenderWidgetHostView* rwhv =
+ window_android->web_contents_->GetRenderWidgetHostView();
gunsch 2015/02/24 05:55:09 optional: instead of accessing web_contents_ (priv
halliwell 2015/02/24 06:23:43 I don't believe there is such an API? WebContents
+ if (rwhv) {
+ rwhv->SetBackgroundColor(SK_ColorBLACK);
+ }
+
return window_android;
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698