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

Unified Diff: chrome/renderer/render_widget.h

Issue 19491: POSIX: bitmap data on the wire (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 11 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
« no previous file with comments | « chrome/common/render_messages_internal.h ('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 9053)
+++ chrome/renderer/render_widget.h (working copy)
@@ -14,6 +14,7 @@
#include "base/ref_counted.h"
#include "chrome/common/ipc_channel.h"
#include "chrome/common/render_messages.h"
+#include "skia/ext/platform_canvas.h"
#include "webkit/glue/webwidget_delegate.h"
#include "webkit/glue/webcursor.h"
@@ -85,6 +86,10 @@
// Close the underlying WebWidget.
void Close();
+ // Get the size of the paint buffer for the given rectangle, rounding up to
+ // the allocation granularity of the system.
+ static size_t GetPaintBufSize(const gfx::Rect& rect);
+
protected:
// Friend RefCounted so that the dtor can be non-public. Using this class
// without ref-counting is an error.
@@ -100,15 +105,11 @@
// Finishes creation of a pending view started with Init.
void CompleteInit(gfx::NativeViewId parent);
- // Paints the given rectangular region of the WebWidget into paint_buf (a
- // shared memory segment returned by AllocPaintBuf). The caller must ensure
- // that the given rect fits within the bounds of the WebWidget.
- void PaintRect(const gfx::Rect& rect, base::SharedMemory* paint_buf);
+ // 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 PaintRect(const gfx::Rect& rect, skia::PlatformCanvas* canvas);
- // Get the size of the paint buffer for the given rectangle, rounding up to
- // the allocation granularity of the system.
- size_t GetPaintBufSize(const gfx::Rect& rect);
-
void DoDeferredPaint();
void DoDeferredScroll();
« no previous file with comments | « chrome/common/render_messages_internal.h ('k') | chrome/renderer/render_widget.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698