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

Unified Diff: chrome/renderer/render_widget.h

Issue 403005: Refactors RenderWidget to extract a PaintAggregator class.... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 11 years, 1 month 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/renderer/paint_aggregator_unittest.cc ('k') | chrome/renderer/render_widget.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/renderer/render_widget.h
===================================================================
--- chrome/renderer/render_widget.h (revision 32494)
+++ chrome/renderer/render_widget.h (working copy)
@@ -14,6 +14,7 @@
#include "base/gfx/size.h"
#include "base/ref_counted.h"
#include "base/shared_memory.h"
+#include "chrome/renderer/paint_aggregator.h"
#include "chrome/renderer/render_process.h"
#include "ipc/ipc_channel.h"
#include "skia/ext/platform_canvas.h"
@@ -120,10 +121,8 @@
// must ensure that the given rect fits within the bounds of the WebWidget.
void PaintRect(const gfx::Rect& rect, skia::PlatformCanvas* canvas);
- void CallDoDeferredPaint();
- void DoDeferredPaint();
- void CallDoDeferredScroll();
- void DoDeferredScroll();
+ void CallDoDeferredUpdate();
+ void DoDeferredUpdate();
void DoDeferredClose();
void DoDeferredSetWindowRect(const WebKit::WebRect& pos);
@@ -240,20 +239,11 @@
TransportDIB* current_paint_buf_;
TransportDIB* current_scroll_buf_;
- // The smallest bounding rectangle that needs to be re-painted. This is non-
- // empty if a paint event is pending.
- gfx::Rect paint_rect_;
+ PaintAggregator paint_aggregator_;
- // The clip rect for the pending scroll event. This is non-empty if a
- // scroll event is pending.
- gfx::Rect scroll_rect_;
-
// The area that must be reserved for drawing the resize corner.
gfx::Rect resizer_rect_;
- // The scroll delta for a pending scroll event.
- gfx::Point scroll_delta_;
-
// Flags for the next ViewHostMsg_PaintRect message.
int next_paint_flags_;
« no previous file with comments | « chrome/renderer/paint_aggregator_unittest.cc ('k') | chrome/renderer/render_widget.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698