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

Unified Diff: content/public/browser/render_widget_host_view.h

Issue 174323003: Expose locks for CopyFromCompositingSurface/CopyFromBackingStore API (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: upload error Created 6 years, 10 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/public/browser/render_widget_host_view.h
diff --git a/content/public/browser/render_widget_host_view.h b/content/public/browser/render_widget_host_view.h
index 7c89136bc9656844a692c397e25ead1680cfca5d..3d69ec689f3a5cb45cac2f24966e35e84fcbe71d 100644
--- a/content/public/browser/render_widget_host_view.h
+++ b/content/public/browser/render_widget_host_view.h
@@ -86,6 +86,10 @@ class CONTENT_EXPORT RenderWidgetHostView {
virtual bool HasFocus() const = 0;
// Returns true is the current display surface is available.
virtual bool IsSurfaceAvailableForCopy() const = 0;
+ // Locks the surface for copying.
+ virtual void LockSurfaceForCopy() = 0;
no sievers 2014/02/21 02:01:37 Can this be in RenderWidgetHostViewPort instead, s
powei 2014/02/21 02:27:22 Done.
+ // Unlocks the surface for copying.
+ virtual void UnlockSurfaceForCopy() = 0;
// Shows/hides the view. These must always be called together in pairs.
// It is not legal to call Hide() multiple times in a row.

Powered by Google App Engine
This is Rietveld 408576698