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

Unified Diff: content/port/browser/render_widget_host_view_port.h

Issue 174323003: Expose locks for CopyFromCompositingSurface/CopyFromBackingStore API (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: addressed comments 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/port/browser/render_widget_host_view_port.h
diff --git a/content/port/browser/render_widget_host_view_port.h b/content/port/browser/render_widget_host_view_port.h
index ae00425b9fcf91ce8fd7127669dd29959d213539..0a2f57d911f4d4971016cc44acd051d3298a2ebf 100644
--- a/content/port/browser/render_widget_host_view_port.h
+++ b/content/port/browser/render_widget_host_view_port.h
@@ -184,6 +184,11 @@ class CONTENT_EXPORT RenderWidgetHostViewPort : public RenderWidgetHostView,
const base::Callback<void(bool, const SkBitmap&)>& callback,
const SkBitmap::Config config) = 0;
+ // For async implementation of copy, we provide a lock to ensure that the
+ // content is not evicted while copying.
no sievers 2014/02/21 02:34:10 I'd say that it instructs the view to not drop the
powei 2014/02/21 18:41:15 Done.
+ virtual void LockSurfaceForCopy() = 0;
+ virtual void UnlockSurfaceForCopy() = 0;
+
// Copies a given subset of the compositing surface's content into a YV12
// VideoFrame, and invokes a callback with a success/fail parameter. |target|
// must contain an allocated, YV12 video frame of the intended size. If the
« no previous file with comments | « content/browser/renderer_host/render_widget_host_view_base.cc ('k') | content/public/browser/render_widget_host.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698