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

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

Issue 506075: Revert 34951 - Combine ViewHostMsg_{Paint,Scroll}Rect into one IPC.... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 11 years 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
Index: chrome/browser/renderer_host/render_widget_host_view_gtk.cc
===================================================================
--- chrome/browser/renderer_host/render_widget_host_view_gtk.cc (revision 34952)
+++ chrome/browser/renderer_host/render_widget_host_view_gtk.cc (working copy)
@@ -505,27 +505,21 @@
key_bindings_handler_->set_enabled(control != IME_DISABLE);
}
-void RenderWidgetHostViewGtk::DidPaintBackingStoreRects(
- const std::vector<gfx::Rect>& rects) {
+void RenderWidgetHostViewGtk::DidPaintRect(const gfx::Rect& rect) {
if (is_hidden_)
return;
- for (size_t i = 0; i < rects.size(); ++i) {
- if (about_to_validate_and_paint_) {
- invalid_rect_ = invalid_rect_.Union(rects[i]);
- } else {
- Paint(rects[i]);
- }
- }
+ if (about_to_validate_and_paint_)
+ invalid_rect_ = invalid_rect_.Union(rect);
+ else
+ Paint(rect);
}
-void RenderWidgetHostViewGtk::DidScrollBackingStoreRect(const gfx::Rect& rect,
- int dx, int dy) {
+void RenderWidgetHostViewGtk::DidScrollRect(const gfx::Rect& rect, int dx,
+ int dy) {
if (is_hidden_)
return;
- // TODO(darin): Implement the equivalent of Win32's ScrollWindowEX. Can that
- // be done using XCopyArea? Perhaps similar to BackingStore::ScrollRect?
Paint(rect);
}
« no previous file with comments | « chrome/browser/renderer_host/render_widget_host_view_gtk.h ('k') | chrome/browser/renderer_host/render_widget_host_view_mac.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698