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

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

Issue 10352016: Consolidate RenderWidgetHost::CopyFromBackingStore and RenderWidgetHost::AsyncCopyFromBackingStore. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 8 years, 7 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 | « content/browser/renderer_host/test_render_view_host.cc ('k') | content/public/browser/render_widget_host.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 e30fc3f01bb02c47ee839bf253b7a49b23bf02e2..8ff0c5d5908a00d196041de8d46d1e8452aefdee 100644
--- a/content/port/browser/render_widget_host_view_port.h
+++ b/content/port/browser/render_widget_host_view_port.h
@@ -140,17 +140,13 @@ class CONTENT_EXPORT RenderWidgetHostViewPort : public RenderWidgetHostView {
// Allocate a backing store for this view.
virtual BackingStore* AllocBackingStore(const gfx::Size& size) = 0;
- // DEPRECATED: Synchronous version of AsyncCopyFromCompositingSurface.
- // This will be removed once all the caller have been chagned to use the
- // asynchronous version.
- virtual bool CopyFromCompositingSurface(const gfx::Size& size,
- skia::PlatformCanvas* output) = 0;
-
- // Asynchrnously copies the contents of the compositing surface into the given
+ // Copies the contents of the compositing surface into the given
// (uninitialized) PlatformCanvas if any.
// |callback| is invoked with true on success, false otherwise. |output| can
// be initialized even on failure.
- virtual void AsyncCopyFromCompositingSurface(
+ // NOTE: |callback| is called asynchronously on Aura and synchronously on the
+ // other platforms.
+ virtual void CopyFromCompositingSurface(
const gfx::Size& size,
skia::PlatformCanvas* output,
base::Callback<void(bool)> callback) = 0;
« no previous file with comments | « content/browser/renderer_host/test_render_view_host.cc ('k') | content/public/browser/render_widget_host.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698