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

Unified Diff: chrome/renderer/render_widget.h

Issue 108040: Send array of paint rects and bitmaps as opposed to a Union (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 7 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
Index: chrome/renderer/render_widget.h
===================================================================
--- chrome/renderer/render_widget.h (revision 17347)
+++ chrome/renderer/render_widget.h (working copy)
@@ -116,7 +116,10 @@
// Paints the given rectangular region of the WebWidget into canvas (a
// shared memory segment returned by AllocPaintBuf on Windows). The caller
// must ensure that the given rect fits within the bounds of the WebWidget.
+ void PaintThisRect(const gfx::Rect& rect, skia::PlatformCanvas* canvas);
void PaintRect(const gfx::Rect& rect, skia::PlatformCanvas* canvas);
+ void PaintRects(const std::vector<gfx::Rect>& rect,
+ skia::PlatformCanvas* canvas);
void DoDeferredPaint();
void DoDeferredScroll();
@@ -225,7 +228,7 @@
// The smallest bounding rectangle that needs to be re-painted. This is non-
// empty if a paint event is pending.
- gfx::Rect paint_rect_;
+ std::vector<gfx::Rect> paint_rects_;
// The clip rect for the pending scroll event. This is non-empty if a
// scroll event is pending.

Powered by Google App Engine
This is Rietveld 408576698