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

Unified Diff: views/widget/widget_gtk.cc

Issue 5121003: Dont composite if rgba is not supported. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 10 years, 1 month 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: views/widget/widget_gtk.cc
diff --git a/views/widget/widget_gtk.cc b/views/widget/widget_gtk.cc
index badafecb3f6b071ee51c94c7826f59b36db63e5c..5dea13c51aae3631e8cb2e30fcddf85693ffe758 100644
--- a/views/widget/widget_gtk.cc
+++ b/views/widget/widget_gtk.cc
@@ -962,7 +962,8 @@ gboolean WidgetGtk::OnPaint(GtkWidget* widget, GdkEventExpose* event) {
if (transparent_ && type_ == TYPE_CHILD) {
// Clear the background before drawing any view and native components.
DrawTransparentBackground(widget, event);
- if (!CompositePainter::IsComposited(widget_)) {
+ if (!CompositePainter::IsComposited(widget_) &&
+ gdk_screen_is_composited(gdk_screen_get_default())) {
// Let the parent draw the content only after something is drawn on
// the widget.
CompositePainter::SetComposited(widget_);
« 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