2014-09-04 17:53:40 +00:00
|
|
|
diff --git compositing_iosurface_layer_mac.mm compositing_iosurface_layer_mac.mm
|
|
|
|
index 81a3529..dfcc48d 100644
|
|
|
|
--- compositing_iosurface_layer_mac.mm
|
|
|
|
+++ compositing_iosurface_layer_mac.mm
|
|
|
|
@@ -268,7 +268,7 @@ void CompositingIOSurfaceLayerHelper::EndPumpingFrames() {
|
2014-06-12 20:28:58 +00:00
|
|
|
TRACE_EVENT0("browser", "CompositingIOSurfaceLayer::drawInCGLContext");
|
|
|
|
|
|
|
|
if (!iosurface_->HasIOSurface() || context_->cgl_context() != glContext) {
|
2014-02-05 20:35:45 +00:00
|
|
|
- glClearColor(1, 1, 1, 1);
|
|
|
|
+ glClearColor(0, 0, 0, 0);
|
|
|
|
glClear(GL_COLOR_BUFFER_BIT);
|
|
|
|
return;
|
|
|
|
}
|
2014-09-04 17:53:40 +00:00
|
|
|
diff --git compositing_iosurface_mac.mm compositing_iosurface_mac.mm
|
|
|
|
index 7012399..47cb9d1 100644
|
|
|
|
--- compositing_iosurface_mac.mm
|
|
|
|
+++ compositing_iosurface_mac.mm
|
|
|
|
@@ -167,7 +167,7 @@ bool CompositingIOSurfaceMac::DrawIOSurface(
|
|
|
|
CHECK_AND_SAVE_GL_ERROR();
|
2014-01-07 18:54:06 +00:00
|
|
|
} else {
|
|
|
|
// Should match the clear color of RenderWidgetHostViewMac.
|
|
|
|
- glClearColor(1.0f, 1.0f, 1.0f, 1.0f);
|
|
|
|
+ glClearColor(0, 0, 0, 0);
|
|
|
|
glClear(GL_COLOR_BUFFER_BIT);
|
|
|
|
}
|
|
|
|
|
2014-09-04 17:53:40 +00:00
|
|
|
diff --git render_widget_host_view_aura.cc render_widget_host_view_aura.cc
|
|
|
|
index 49ee8e4..c49ef82 100644
|
|
|
|
--- render_widget_host_view_aura.cc
|
|
|
|
+++ render_widget_host_view_aura.cc
|
|
|
|
@@ -1615,8 +1615,14 @@ void RenderWidgetHostViewAura::OnPaint(gfx::Canvas* canvas) {
|
2014-05-29 17:15:34 +00:00
|
|
|
// For non-opaque windows, we don't draw anything, since we depend on the
|
|
|
|
// canvas coming from the compositor to already be initialized as
|
|
|
|
// transparent.
|
|
|
|
- if (window_->layer()->fills_bounds_opaquely())
|
|
|
|
- canvas->DrawColor(SK_ColorWHITE);
|
|
|
|
+ if (window_->layer()->fills_bounds_opaquely()) {
|
|
|
|
+ if (host_->IsRenderView()) {
|
|
|
|
+ canvas->DrawColor(GetContentClient()->browser()->GetBaseBackgroundColor(
|
|
|
|
+ RenderViewHost::From(host_)));
|
|
|
|
+ } else {
|
|
|
|
+ canvas->DrawColor(SK_ColorWHITE);
|
2014-04-15 19:02:30 +00:00
|
|
|
+ }
|
2014-05-29 17:15:34 +00:00
|
|
|
+ }
|
2014-04-08 19:33:48 +00:00
|
|
|
}
|
|
|
|
|
2014-05-29 17:15:34 +00:00
|
|
|
void RenderWidgetHostViewAura::OnDeviceScaleFactorChanged(
|
2014-09-04 17:53:40 +00:00
|
|
|
diff --git render_widget_host_view_mac.mm render_widget_host_view_mac.mm
|
|
|
|
index 4ebbd62..7b3983a 100644
|
|
|
|
--- render_widget_host_view_mac.mm
|
|
|
|
+++ render_widget_host_view_mac.mm
|
|
|
|
@@ -507,7 +507,7 @@ RenderWidgetHostViewMac::RenderWidgetHostViewMac(RenderWidgetHost* widget)
|
|
|
|
// draw.
|
2014-06-12 20:28:58 +00:00
|
|
|
background_layer_.reset([[CALayer alloc] init]);
|
|
|
|
[background_layer_
|
|
|
|
- setBackgroundColor:CGColorGetConstantColor(kCGColorWhite)];
|
|
|
|
+ setBackgroundColor:CGColorGetConstantColor(kCGColorClear)];
|
|
|
|
[cocoa_view_ setLayer:background_layer_];
|
2014-09-04 17:53:40 +00:00
|
|
|
[cocoa_view_ setWantsLayer:YES];
|
|
|
|
|