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

Unified Diff: chrome/browser/renderer_host/render_widget_host_view_gtk.cc

Issue 27169: Linux: add splash screen (Closed)
Patch Set: ... Created 11 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 | « chrome/browser/renderer_host/backing_store_x.cc ('k') | chrome/browser/resources/linux-splash.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/renderer_host/render_widget_host_view_gtk.cc
diff --git a/chrome/browser/renderer_host/render_widget_host_view_gtk.cc b/chrome/browser/renderer_host/render_widget_host_view_gtk.cc
index f4ef5601deff8aa14a5d58976cbd7285467f901b..4b5f19e37179c01f63bb00e7e57f4eecd869de61 100644
--- a/chrome/browser/renderer_host/render_widget_host_view_gtk.cc
+++ b/chrome/browser/renderer_host/render_widget_host_view_gtk.cc
@@ -287,11 +287,11 @@ BackingStore* RenderWidgetHostViewGtk::AllocBackingStore(
const gfx::Size& size) {
Display* display = x11_util::GetXDisplay();
void* visual = x11_util::GetVisualFromGtkWidget(view_);
- XID parent_window = x11_util::GetX11WindowFromGtkWidget(view_);
+ XID root_window = x11_util::GetX11RootWindow();
bool use_shared_memory = x11_util::QuerySharedMemorySupport(display);
int depth = gtk_widget_get_visual(view_)->depth;
- return new BackingStore(size, display, depth, visual, parent_window,
+ return new BackingStore(size, display, depth, visual, root_window,
use_shared_memory);
}
@@ -303,9 +303,10 @@ void RenderWidgetHostViewGtk::Paint(const gfx::Rect& damage_rect) {
// period where this object isn't attached to a window but hasn't been
// Destroy()ed yet and it receives paint messages...
GdkWindow* window = view_->window;
- if (window)
- backing_store->ShowRect(damage_rect);
-
+ if (window) {
+ backing_store->ShowRect(
+ damage_rect, x11_util::GetX11WindowFromGtkWidget(view_));
+ }
} else {
NOTIMPLEMENTED();
}
« no previous file with comments | « chrome/browser/renderer_host/backing_store_x.cc ('k') | chrome/browser/resources/linux-splash.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698