summaryrefslogtreecommitdiffstats
path: root/chrome/renderer/render_widget.h
diff options
context:
space:
mode:
authormad@google.com <mad@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-06-10 21:41:54 +0000
committermad@google.com <mad@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-06-10 21:41:54 +0000
commit87ef8484fbd915ac4e527fb566422002f4d612ab (patch)
treee6180d206b0723ab073985ec5f2016a14f459127 /chrome/renderer/render_widget.h
parent9aefecc973faa549046389937bd526f00fb26b5f (diff)
downloadchromium_src-87ef8484fbd915ac4e527fb566422002f4d612ab.zip
chromium_src-87ef8484fbd915ac4e527fb566422002f4d612ab.tar.gz
chromium_src-87ef8484fbd915ac4e527fb566422002f4d612ab.tar.bz2
To help resolve the performance issue introduced when enabling the resize corner, we now keep all non-intersecting rects separately and send an array of invalidation bitmaps via IPC as opposed to a single unionized rect :-)
Review URL: http://codereview.chromium.org/108040 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@18090 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/renderer/render_widget.h')
-rw-r--r--chrome/renderer/render_widget.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/chrome/renderer/render_widget.h b/chrome/renderer/render_widget.h
index 440a7e2..8a501ba 100644
--- a/chrome/renderer/render_widget.h
+++ b/chrome/renderer/render_widget.h
@@ -116,7 +116,10 @@ class RenderWidget : public IPC::Channel::Listener,
// 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();
@@ -221,7 +224,7 @@ class RenderWidget : public IPC::Channel::Listener,
// 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.