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

Unified Diff: content/renderer/render_widget.h

Issue 12881005: Allow CopyFromBackingStore to fallback to copying from the renderer side if the accelerated surface… (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: unused include Created 7 years, 9 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: content/renderer/render_widget.h
diff --git a/content/renderer/render_widget.h b/content/renderer/render_widget.h
index 680c85ad510bd435edb2bac15f0001c940ce7fba..5444af16ebb4ff8bdf28722781fe3749ebd6afa5 100644
--- a/content/renderer/render_widget.h
+++ b/content/renderer/render_widget.h
@@ -317,6 +317,7 @@ class CONTENT_EXPORT RenderWidget
void OnImeBatchStateChanged(bool is_begin);
void OnShowImeIfNeeded();
#endif
+ void OnSnapshot(const gfx::Rect& src_subrect);
// Notify the compositor about a change in viewport size. This should be
// used only with auto resize mode WebWidgets, as normal WebWidgets should
@@ -478,6 +479,8 @@ class CONTENT_EXPORT RenderWidget
WebKit::WebGraphicsContext3D* CreateGraphicsContext3D(
const WebKit::WebGraphicsContext3D::Attributes& attributes);
+ bool OnSnapshotHelper(const gfx::Rect& src_subrect, SkBitmap* bitmap);
+
// Routing ID that allows us to communicate to the parent browser process
// RenderWidgetHost. When MSG_ROUTING_NONE, no messages may be sent.
int32 routing_id_;

Powered by Google App Engine
This is Rietveld 408576698