Mac: use regions to improve painting performance (issue #360).

git-svn-id: https://chromiumembedded.googlecode.com/svn/trunk@377 5089003a-bbd8-11dd-ad1f-f1f9622dbc98
This commit is contained in:
Marshall Greenblatt
2011-11-14 17:47:21 +00:00
parent 69226efeb6
commit 0e4c6a648c
7 changed files with 116 additions and 111 deletions

View File

@@ -149,7 +149,7 @@ class WebWidgetHostGtkWidget {
g_handling_expose = true;
gfx::Rect rect(expose->area);
host->UpdatePaintRect(rect);
host->Paint(rect);
host->Paint();
g_handling_expose = false;
return FALSE;
}
@@ -342,7 +342,7 @@ void WebWidgetHost::Resize(const gfx::Size &newsize) {
SetSize(newsize.width(), newsize.height());
}
void WebWidgetHost::Paint(const gfx::Rect& dirty_rect) {
void WebWidgetHost::Paint() {
int width = logical_size_.width();
int height = logical_size_.height();
gfx::Rect client_rect(width, height);