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

Unified Diff: content/browser/renderer_host/render_widget_host_view_aura.cc

Issue 8369006: [Aura] Support transparent webkit. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: address brettw's comment in #1 Created 9 years, 2 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 | « content/browser/renderer_host/backing_store_skia.cc ('k') | content/renderer/render_widget.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/renderer_host/render_widget_host_view_aura.cc
diff --git a/content/browser/renderer_host/render_widget_host_view_aura.cc b/content/browser/renderer_host/render_widget_host_view_aura.cc
index 299368f82f28d7f558803c8a7085a65d9aa33739..f4e56b1ecb00870f904a5ec2148fd1cb4ea1a416 100644
--- a/content/browser/renderer_host/render_widget_host_view_aura.cc
+++ b/content/browser/renderer_host/render_widget_host_view_aura.cc
@@ -15,13 +15,13 @@
#include "ui/aura/hit_test.h"
#include "ui/aura/window.h"
#include "ui/gfx/canvas.h"
+#include "ui/gfx/compositor/layer.h"
#if defined(UI_COMPOSITOR_IMAGE_TRANSPORT)
#include "base/bind.h"
#include "content/browser/gpu/gpu_process_host_ui_shim.h"
#include "content/browser/renderer_host/accelerated_surface_container_linux.h"
#include "content/common/gpu/gpu_messages.h"
-#include "ui/gfx/compositor/layer.h"
#include "ui/gfx/gl/gl_bindings.h"
#endif
@@ -237,6 +237,7 @@ void RenderWidgetHostViewAura::AcceleratedSurfaceRelease(uint64 surface_id) {
void RenderWidgetHostViewAura::SetBackground(const SkBitmap& background) {
RenderWidgetHostView::SetBackground(background);
host_->SetBackground(background);
+ window_->layer()->SetFillsBoundsOpaquely(background.isOpaque());
}
#if defined(OS_POSIX)
« no previous file with comments | « content/browser/renderer_host/backing_store_skia.cc ('k') | content/renderer/render_widget.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698